summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorDave Lawrence <dkl@redhat.com>2010-03-03 23:11:16 +0100
committerDavid Lawrence <dkl@redhat.com>2010-03-03 23:11:16 +0100
commitb30aeba04609049378374441209f7e808931e198 (patch)
treed7b46b44dfc197ce0bbbb2fe58d924ced424d051 /buglist.cgi
parent8d0710acaba90364e20af1cb9d23a8ad62f3bcd3 (diff)
downloadbugzilla-b30aeba04609049378374441209f7e808931e198.tar.gz
bugzilla-b30aeba04609049378374441209f7e808931e198.tar.xz
Bug 513989 - large search query causing internal server error (500) but valid redirect 302 returned
r=mkanat, a=mkanat
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 810dd7b00..3090b2a88 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -85,9 +85,11 @@ if (grep { $_ =~ /^cmd\-/ } $cgi->param()) {
#
if ($cgi->request_method() eq 'POST') {
$cgi->clean_search_url();
-
- print $cgi->redirect(-url => $cgi->self_url());
- exit;
+ my $uri_length = length($cgi->self_url());
+ if ($uri_length < CGI_URI_LIMIT) {
+ print $cgi->redirect(-url => $cgi->self_url());
+ exit;
+ }
}
# Determine whether this is a quicksearch query.