summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-03-11 16:33:03 +0100
committermyk%mozilla.org <>2002-03-11 16:33:03 +0100
commit0930c074fa7d8dabed00af2ba39a177a8d00167f (patch)
tree7da1e3717b8e0a3c60470c9aaa15a496c81acb3d /attachment.cgi
parent861379aee83b8b2da5e6247dc3462847b3e127b2 (diff)
downloadbugzilla-0930c074fa7d8dabed00af2ba39a177a8d00167f.tar.gz
bugzilla-0930c074fa7d8dabed00af2ba39a177a8d00167f.tar.xz
Fix for bug 72184: prevents users from entering too-large comments/descriptions that get rejected by MySQL's MAX_PACKET_SIZE restrictions.
Patch by Myk Melez <myk@mozilla.org>. r=bbaetz,gerv
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 32b4ef461..66c3236a7 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -77,6 +77,7 @@ elsif ($action eq "insert")
{
confirm_login();
ValidateBugID($::FORM{'bugid'});
+ ValidateComment($::FORM{'comment'});
validateFilename();
validateData();
validateDescription();
@@ -95,6 +96,7 @@ elsif ($action eq "edit")
elsif ($action eq "update")
{
confirm_login();
+ ValidateComment($::FORM{'comment'});
validateID();
validateCanEdit($::FORM{'id'});
validateDescription();