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

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

Fix indendation in http/upload.cgi

parent 47312a4d
No related branches found
No related tags found
No related merge requests found
......@@ -57,31 +57,32 @@ $filename = $string . "." . $extension;
my $allowed_extension = 1;
foreach(@not_allowed_extensions)
{
{
if($filename =~ /\.$_$/i)
{
$allowed_extension = 0;
last;
}
{
$allowed_extension = 0;
last;
}
}
}
if($allowed_extension)
{
open(FILE,">$upload_dir/$filename");
binmode(FILE);
while(<$upload_filehandle>)
{
print FILE;
}
close FILE;
open(FILE,">$upload_dir/$filename");
binmode(FILE);
print $ENV{HTTP_REFERER} . "$upload_dir$filename";
while(<$upload_filehandle>)
{
print FILE;
}
close FILE;
print $ENV{HTTP_REFERER} . "$upload_dir$filename";
}
else {
print "The file extension .$extension is not allowed in this instance.";
else
{
print "The file extension .$extension is not allowed in this instance.";
}
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