upload: whitelist filename chars instead of blacklisting
This commit is contained in:
committed by
Dietmar Maurer
parent
e83f7b4095
commit
38e1eb3d87
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user