X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lib%2FApache%2FGallery.pm;fp=lib%2FApache%2FGallery.pm;h=c9a78d2502fefeed362c6836865080efe595e9d4;hb=9cc9cdcf38c1ee45495887d805dd0c8358ff1385;hp=e02bee91b384403cd8e4bc10334d4df3a7ed2c6e;hpb=f05446b0d898a278302a8f3058f56c9b30d8a592;p=deb_pkgs%2Flibapache-gallery-perl.git diff --git a/lib/Apache/Gallery.pm b/lib/Apache/Gallery.pm index e02bee9..c9a78d2 100644 --- a/lib/Apache/Gallery.pm +++ b/lib/Apache/Gallery.pm @@ -187,10 +187,9 @@ sub handler { my $doc_pattern = $r->dir_config('GalleryDocFile'); unless ($doc_pattern) { - $doc_pattern = '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' + $doc_pattern = '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' } - my $img_pattern = $r->dir_config('GalleryImgFile'); - unless ($img_pattern) { + my $img_pattern = $r->dir_config('GalleryImgFile') unless ($img_pattern) { $img_pattern = '\.(jpe?g|png|tiff?|ppm)$' } @@ -1833,7 +1832,7 @@ Pattern matching the files you want Apache::Gallery to view in the index as normal files. All other filetypes will still be served by Apache::Gallery but are not visible in the index. -The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' +The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' =item B