diff options
author | gerv%gerv.net <> | 2005-01-03 08:18:04 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2005-01-03 08:18:04 +0100 |
commit | a90c06d0075eb8a0a9b57a8b80ba3c26f6136643 (patch) | |
tree | 2c5623e81c405b929a2e5253a2f7d088964238a8 /buglist.cgi | |
parent | db91a3203b7a5a9bb90b0499b0c1ae007a7ac958 (diff) | |
download | bugzilla-a90c06d0075eb8a0a9b57a8b80ba3c26f6136643.tar.gz bugzilla-a90c06d0075eb8a0a9b57a8b80ba3c26f6136643.tar.xz |
Bug 274640: silently fix up custom sort order cookies which erroneously include SQL LIMIT clause. Patch by gerv; r=vladd,justdave; a=justdave.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi index bdda404a3..79504d635 100755 --- a/buglist.cgi +++ b/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 { |