From: Ben Hutchings Date: Mon, 27 Aug 2007 14:35:51 +0000 (+0000) Subject: Added patch for CGI front-end to report fatal errors instead of staying silent and... X-Git-Tag: 2.11+2.111-1~8 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=edbb6d92dbe1f67f8123a2652dc7467cff06ecf6;p=maypole.git Added patch for CGI front-end to report fatal errors instead of staying silent and leaving it to the web server. --- diff --git a/debian/patches/104_add-cgi-error-status.diff b/debian/patches/104_add-cgi-error-status.diff new file mode 100644 index 0000000..7fdef73 --- /dev/null +++ b/debian/patches/104_add-cgi-error-status.diff @@ -0,0 +1,21 @@ +--- maypole.orig/lib/CGI/Maypole.pm ++++ maypole/lib/CGI/Maypole.pm +@@ -57,7 +57,17 @@ + sub run + { + my $self = shift; +- return $self->handler; ++ my $status = $self->handler; ++ if ($status != OK) { ++ print <Maypole application error ++

Maypole application error

++EOT ++ } ++ return $status; + } + + =head1 Implementation diff --git a/debian/patches/series b/debian/patches/series index 834be6e..69c9bda 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,5 @@ 101_fix-extension-mime-type.diff 102_fix-apache_mvc-test.diff 103_fix-view_object-warning.diff +104_add-cgi-error-status.diff 201_no-file-mmagic-xs.diff