From 68d9f1e56e0207e28bfd701a43aad2b0144e8d6a Mon Sep 17 00:00:00 2001
From: qorg11 <qorg@vxempire.xyz>
Date: Sat, 14 Nov 2020 22:48:02 +0100
Subject: [PATCH] Change the .cgi extension to .notcgi so the stupid http
 server doesn't try to execute it

---
 http/upload.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/http/upload.cgi b/http/upload.cgi
index e2b20d9..0849ccd 100755
--- a/http/upload.cgi
+++ b/http/upload.cgi
@@ -46,7 +46,7 @@ if($size > $MAX_SIZE)
 
 my $extension = $filename;
 $extension =~ s/.*\.//; # tar.gz sucks with this
-
+$extension = "notcgi" if $extension eq "cgi";
 # Get unix time in miliseconds
 my $string;
 $string = gettimeofday; # perl, what?
-- 
GitLab