From: Ben Hutchings Date: Mon, 20 Aug 2007 21:29:33 +0000 (+0000) Subject: Added patch to fix minimum length of file extension for file type inference. X-Git-Tag: 2.11+2.111-1~13 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=9690acc7b6cc5dd7e8c536f8b6642540e2716924;p=maypole.git Added patch to fix minimum length of file extension for file type inference. --- diff --git a/debian/patches/101_fix-extension-mime-type.diff b/debian/patches/101_fix-extension-mime-type.diff new file mode 100644 index 0000000..e8c1022 --- /dev/null +++ b/debian/patches/101_fix-extension-mime-type.diff @@ -0,0 +1,11 @@ +--- maypole.orig/lib/Maypole.pm ++++ maypole/lib/Maypole.pm +@@ -617,7 +617,7 @@ + sub __get_mime_type { + my $self = shift; + my $type = 'text/html'; +- if ($self->path =~ m/.*\.(\w{3,4})$/) { ++ if ($self->path =~ m/.*\.(\w{2,4})$/) { + $type = $filetypes{$1}; + } else { + my $output = $self->output; diff --git a/debian/patches/series b/debian/patches/series index 0e61931..f4daffd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ +101_fix-extension-mime-type.diff 201_no-file-mmagic-xs.diff