]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 762787: Reduce CGI_URI_LIMIT from 8000 to 2083 (IE only)
authorSimon Green <sgreen+mozilla@redhat.com>
Wed, 27 Jun 2012 06:32:00 +0000 (14:32 +0800)
committerByron Jones <bjones@mozilla.com>
Wed, 27 Jun 2012 06:32:00 +0000 (14:32 +0800)
r=glob, a=LpSolit

Bugzilla/Constants.pm

index b096cc3bbfafa5f9ce283e833abb5fb0219752ed..59e67faa5417ebda074b189e177cdb48c20bddc9 100644 (file)
@@ -568,7 +568,8 @@ use constant PASSWORD_SALT_LENGTH => 8;
 # Certain scripts redirect to GET even if the form was submitted originally
 # via POST such as buglist.cgi. This value determines whether the redirect
 # can be safely done or not based on the web server's URI length setting.
-use constant CGI_URI_LIMIT => 8000;
+# See http://support.microsoft.com/kb/208427 for why MSIE is different
+use constant CGI_URI_LIMIT => $ENV{'HTTP_USER_AGENT'} =~ /MSIE/ ? 2083 : 8000;
 
 # If the user isn't allowed to change a field, we must tell him who can.
 # We store the required permission set into the $PrivilegesRequired