fix: POST_MAX
This commit is contained in:
parent
4c39c6759b
commit
f36879c55c
3 changed files with 3 additions and 2 deletions
|
|
@ -205,6 +205,7 @@ sub addFileFromFormPost {
|
|||
my $tempFilename = $upload->filename();
|
||||
next unless $tempFilename;
|
||||
next unless $upload->size > 0;
|
||||
next if ($upload->size > 1024 * $self->session->setting->get("maxAttachmentSize"));
|
||||
if ($tempFilename =~ /([^\/\\]+)$/) { $tempFilename = $1; }
|
||||
my $type = $self->getFileExtension($tempFilename);
|
||||
if (isIn($type, qw(pl perl sh cgi php asp))) { # make us safe from malicious uploads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue