Make lainsafe change the name repleace the spaces in the url with %20
for weird browsers and weird clients (poezio i'm looking at you)
This commit is contained in:
parent
a5b0de143b
commit
082d1ae23a
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ if ($allowed_extension) {
|
||||||
}
|
}
|
||||||
|
|
||||||
close FILE;
|
close FILE;
|
||||||
|
$filename =~ s/ /%20/g;
|
||||||
print $prot. "://" . $ENV{HTTP_HOST} . "/$upload_dir$dirname/$filename";
|
print $prot. "://" . $ENV{HTTP_HOST} . "/$upload_dir$dirname/$filename";
|
||||||
} else {
|
} else {
|
||||||
print "The file extension .$extension is not allowed in this instance.";
|
print "The file extension .$extension is not allowed in this instance.";
|
||||||
|
|
Loading…
Add table
Reference in a new issue