Fixed a bug where attachments larger than the max attachment size could be uploaded.

This commit is contained in:
JT Smith 2002-09-12 01:57:02 +00:00
parent 412dee2a8f
commit e79d1f4e19

View file

@ -223,8 +223,8 @@ sub open {
$session{setting} = WebGUI::SQL->buildHashRef("select name,value from settings");
###----------------------------
### CGI object
$session{cgi} = CGI->new();
$CGI::POST_MAX=1024 * $session{setting}{maxAttachmentSize};
$session{cgi} = CGI->new();
###----------------------------
### header variables
$session{header}{mimetype} = 'text/html';