diff options
author | myk%mozilla.org <> | 2002-03-11 15:33:03 +0000 |
---|---|---|
committer | myk%mozilla.org <> | 2002-03-11 15:33:03 +0000 |
commit | 0930c074fa7d8dabed00af2ba39a177a8d00167f (patch) | |
tree | 7da1e3717b8e0a3c60470c9aaa15a496c81acb3d /post_bug.cgi | |
parent | Bug 129017 - perl error in apache log (diff) | |
download | bugzilla-0930c074fa7d8dabed00af2ba39a177a8d00167f.tar.gz bugzilla-0930c074fa7d8dabed00af2ba39a177a8d00167f.tar.bz2 bugzilla-0930c074fa7d8dabed00af2ba39a177a8d00167f.zip |
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 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 0ae44d32f..58048ef7e 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -49,6 +49,8 @@ sub sillyness { confirm_login(); +ValidateComment($::FORM{'comment'}); + my $cookiepath = Param("cookiepath"); print "Set-Cookie: PLATFORM=$::FORM{'product'} ; path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n" if ( exists $::FORM{'product'} ); print "Set-Cookie: VERSION-$::FORM{'product'}=$::FORM{'version'} ; path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n" if ( exists $::FORM{'product'} && exists $::FORM{'version'} ); |