summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2005-01-03 08:18:04 +0100
committergerv%gerv.net <>2005-01-03 08:18:04 +0100
commita90c06d0075eb8a0a9b57a8b80ba3c26f6136643 (patch)
tree2c5623e81c405b929a2e5253a2f7d088964238a8
parentdb91a3203b7a5a9bb90b0499b0c1ae007a7ac958 (diff)
downloadbugzilla-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.
-rwxr-xr-xbuglist.cgi5
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 {