I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit ac4c841e authored by xalloc xzal's avatar xalloc xzal
Browse files

Stop if request method is GET

parent 59ae705c
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,6 @@ use Time::HiRes qw(gettimeofday);
my $q = CGI->new;
my $filename = $q->param('file');
# TODO: fix 502
my $upload_dir = "files/";
print $q->header();
......@@ -32,7 +31,7 @@ our $MAX_SIZE = 1024*1024*10; # Change for your size
our $MAX_SIZE_MB = $MAX_SIZE / 1024 / 1024; # Don't change this
our @not_allowed_extensions = qw(sh out exe);
if($filename eq "")
if($filename eq "" || $ENV{REQUEST_METHOD} eq "GET")
{
print("What are you looking for?");
exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment