From e79d1f4e196f1ab92516fb878229e2a7065fb3e9 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 12 Sep 2002 01:57:02 +0000 Subject: [PATCH] Fixed a bug where attachments larger than the max attachment size could be uploaded. --- lib/WebGUI/Session.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index 2e757a029..257af11a9 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -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';