From: lpsolit%gmail.com <> Date: Thu, 4 Jan 2007 00:23:14 +0000 (+0000) Subject: Bug 365739: An error is thrown when attaching a too big file on bug creation - Patch... X-Git-Tag: bugzilla-2.23.4~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ff21097b1a8307a1613c6b695ae700f2bda6a0;p=thirdparty%2Fbugzilla.git Bug 365739: An error is thrown when attaching a too big file on bug creation - Patch by Frédéric Buclin r/a=justdave --- diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 95d4026ad7..fe1b781c9a 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -749,7 +749,7 @@ sub insert_attachment_for_bug { unless ($cgi->param('ispatch')) { $class->validate_content_type($throw_error) || return 0; } - $data = _validate_data($hr_vars, $throw_error) || return 0; + $data = _validate_data($throw_error, $hr_vars) || return 0; $contenttype = $cgi->param('contenttype'); # These are inserted using placeholders so no need to panic