]> git.decadent.org.uk Git - maypole.git/commitdiff
Added patch for CGI front-end to report fatal errors instead of staying silent and...
authorBen Hutchings <ben@decadent.org.uk>
Mon, 27 Aug 2007 14:35:51 +0000 (14:35 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 4 Nov 2008 03:32:55 +0000 (03:32 +0000)
debian/patches/104_add-cgi-error-status.diff [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/104_add-cgi-error-status.diff b/debian/patches/104_add-cgi-error-status.diff
new file mode 100644 (file)
index 0000000..7fdef73
--- /dev/null
@@ -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 <<EOT;
++Status: 500 Maypole application error
++Content-Type: text/html
++
++<title>Maypole application error</h1>
++<h1>Maypole application error</h1>
++EOT
++    }
++    return $status;
+ }
+ =head1 Implementation
index 834be6e20c1e4054576e0d1da08489b8d0610eab..69c9bda7d077627d92d52c12b852220b42f3c2c6 100644 (file)
@@ -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