From c650eb50d7ce8ab333e46a36210de0f52478351b Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" Date: Sun, 2 Jan 2005 23:21:22 +0000 Subject: [PATCH] Bug 274640: silently fix up custom sort order cookies which erroneously include SQL LIMIT clause. Patch by gerv; r=vladd,justdave; a=justdave. git-svn-id: svn://10.0.0.236/trunk@167188 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/buglist.cgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/webtools/bugzilla/buglist.cgi b/mozilla/webtools/bugzilla/buglist.cgi index bdda404a31a..79504d63518 100755 --- a/mozilla/webtools/bugzilla/buglist.cgi +++ b/mozilla/webtools/bugzilla/buglist.cgi @@ -612,6 +612,11 @@ my @selectnames = map($columns->{$_}->{'name'}, @selectcolumns); if (!$order || $order =~ /^reuse/i) { if ($cgi->cookie('LASTORDER')) { $order = $cgi->cookie('LASTORDER'); + + # Cookies from early versions of Specific Search included this text, + # which is now invalid. + $order =~ s/ LIMIT 200//; + $order_from_cookie = 1; } else {