remove the superfluous '.'s from the exportBinaryExtensions config field and
update exportGetUrlAsPath's regex to match.
This commit is contained in:
parent
67c0fd3dfb
commit
a30b919cff
2 changed files with 31 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue