From 48bc6d3981dfedf1183a76f2ccc17d8889edaa56 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sat, 28 Sep 2013 00:37:03 +0200 Subject: Bug 851267: Bugzilla times out when a user has several thousands of votes r=dkl a=justdave --- Bugzilla/CGI.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 991bfc05d..05863bf02 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -473,9 +473,9 @@ sub redirect_search_url { # GET requests that lacked a list_id are always redirected. POST requests # are only redirected if they're under the CGI_URI_LIMIT though. - my $uri_length = length($self->self_url()); - if ($self->request_method() ne 'POST' or $uri_length < CGI_URI_LIMIT) { - print $self->redirect(-url => $self->self_url()); + my $self_url = $self->self_url(); + if ($self->request_method() ne 'POST' or length($self_url) < CGI_URI_LIMIT) { + print $self->redirect(-url => $self_url); exit; } } @@ -529,7 +529,7 @@ sub url_is_attachment_base { $regex =~ s/\\\%bugid\\\%/\\d+/; } $regex = "^$regex"; - return ($self->self_url =~ $regex) ? 1 : 0; + return ($self->url =~ $regex) ? 1 : 0; } sub set_dated_content_disp { -- cgit v1.2.3-24-g4f1b