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:
qorg11 2021-03-23 12:43:31 +01:00
parent a5b0de143b
commit 082d1ae23a
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ if ($allowed_extension) {
}
close FILE;
$filename =~ s/ /%20/g;
print $prot. "://" . $ENV{HTTP_HOST} . "/$upload_dir$dirname/$filename";
} else {
print "The file extension .$extension is not allowed in this instance.";