From edbb6d92dbe1f67f8123a2652dc7467cff06ecf6 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 27 Aug 2007 14:35:51 +0000 Subject: [PATCH] Added patch for CGI front-end to report fatal errors instead of staying silent and leaving it to the web server. --- debian/patches/104_add-cgi-error-status.diff | 21 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/104_add-cgi-error-status.diff 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 -- 2.39.5