remove the superfluous '.'s from the exportBinaryExtensions config field and

update exportGetUrlAsPath's regex to match.
This commit is contained in:
Chris Nehren 2008-10-17 20:36:35 +00:00
parent 67c0fd3dfb
commit a30b919cff
2 changed files with 31 additions and 31 deletions

View file

@ -543,7 +543,7 @@ sub exportGetUrlAsPath {
return Path::Class::File->new($exportPath, @pathComponents, $filename, $index);
}
else { # got a dot
my $extension = (fileparse($filename, qr/\.[^.]*/))[2]; # get just the extension
my $extension = (fileparse($filename, qr/[^.]*$/))[2]; # get just the extension
# check if the file type is recognised by apache. if it is, return it
# as-is. if not, slap on the directory separator, $index, and return