1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Origin: 9cc9cdcf38c1ee45495887d805dd0c8358ff1385 Mon Sep 17 00:00:00 2001
From: Don Armstrong <don@donarmstrong.com>
Last-Update: 2014-05-31
Bug-Debian: https://bugs.debian.org/704000
Subject: Add rudimentary support for mp4 files (Closes: #704000).
Thanks to Andres Salomon <dilinger@queued.net> for the patch.
git-svn-id: file:///srv/don_svn/deb_pkgs/libapache-gallery-perl/trunk@724 8f7917da-ec0b-0410-a553-b9b0e350d17e
---
lib/Apache/Gallery.pm | 7 +++----
4 files changed, 17 insertions(+), 6 deletions(-)
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<GalleryTTFDir>
--
2.51.0
|