From 082d1ae23a4a495e637682ab04cf61cfb27b5efb Mon Sep 17 00:00:00 2001 From: qorg11 Date: Tue, 23 Mar 2021 12:43:31 +0100 Subject: [PATCH] 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) --- http/upload.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/upload.cgi b/http/upload.cgi index 06f996d..ea64472 100755 --- a/http/upload.cgi +++ b/http/upload.cgi @@ -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.";