From 9690acc7b6cc5dd7e8c536f8b6642540e2716924 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 20 Aug 2007 21:29:33 +0000 Subject: [PATCH] Added patch to fix minimum length of file extension for file type inference. --- debian/patches/101_fix-extension-mime-type.diff | 11 +++++++++++ debian/patches/series | 1 + 2 files changed, 12 insertions(+) create mode 100644 debian/patches/101_fix-extension-mime-type.diff 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 -- 2.39.5