Needed to show error messages properly in non-SSL mode

This commit is contained in:
Jamie Cameron
2020-06-30 15:02:29 -07:00
parent 3c99bdd9b5
commit 645daaf0cd

View File

@@ -2478,7 +2478,7 @@ if (&get_type($full) eq "internal/cgi" && $validated != 4) {
if ($@) {
# Error in perl!
&http_error(500, "Perl execution failed",
$config{'noshowstderr'} ? undef : $@);
$config{'noshowstderr'} ? undef : "$@");
}
elsif (!$doneheaders && !$nph_script) {
&http_error(500, "Missing Headers");