Fixed a bug where attachments larger than the max attachment size could be uploaded.
This commit is contained in:
parent
412dee2a8f
commit
e79d1f4e19
1 changed files with 1 additions and 1 deletions
|
|
@ -223,8 +223,8 @@ sub open {
|
||||||
$session{setting} = WebGUI::SQL->buildHashRef("select name,value from settings");
|
$session{setting} = WebGUI::SQL->buildHashRef("select name,value from settings");
|
||||||
###----------------------------
|
###----------------------------
|
||||||
### CGI object
|
### CGI object
|
||||||
$session{cgi} = CGI->new();
|
|
||||||
$CGI::POST_MAX=1024 * $session{setting}{maxAttachmentSize};
|
$CGI::POST_MAX=1024 * $session{setting}{maxAttachmentSize};
|
||||||
|
$session{cgi} = CGI->new();
|
||||||
###----------------------------
|
###----------------------------
|
||||||
### header variables
|
### header variables
|
||||||
$session{header}{mimetype} = 'text/html';
|
$session{header}{mimetype} = 'text/html';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue