]> git.decadent.org.uk Git - maypole.git/commitdiff
Added patch to fix minimum length of file extension for file type inference.
authorBen Hutchings <ben@decadent.org.uk>
Mon, 20 Aug 2007 21:29:33 +0000 (21:29 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 4 Nov 2008 03:32:54 +0000 (03:32 +0000)
debian/patches/101_fix-extension-mime-type.diff [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/101_fix-extension-mime-type.diff b/debian/patches/101_fix-extension-mime-type.diff
new file mode 100644 (file)
index 0000000..e8c1022
--- /dev/null
@@ -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;
index 0e61931844a747b0e1ce5c29dc50cf1bfd564ebc..f4daffd536212980facd36ebba6789fb38de7041 100644 (file)
@@ -1 +1,2 @@
+101_fix-extension-mime-type.diff
 201_no-file-mmagic-xs.diff