upload: whitelist filename chars instead of blacklisting

This commit is contained in:
Wolfgang Bumiller
2016-06-09 16:54:47 +02:00
committed by Dietmar Maurer
parent e83f7b4095
commit 38e1eb3d87

View File

@ -343,7 +343,7 @@ __PACKAGE__->register_method ({
chomp $filename;
$filename =~ s/^.*[\/\\]//;
$filename =~ s/[;:,=\s\x80-\xff]/_/g;
$filename =~ s/[^-a-zA-Z0-9_.]/_/g;
my $path;