From 645daaf0cdbedcc58ac15aefda953d1a2e039cb4 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 30 Jun 2020 15:02:29 -0700 Subject: [PATCH] Needed to show error messages properly in non-SSL mode --- miniserv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniserv.pl b/miniserv.pl index 66dc10c0e..82c747719 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -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");