]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 274640: silently fix up custom sort order cookies which erroneously include SQL...
authorgerv%gerv.net <>
Mon, 3 Jan 2005 07:21:22 +0000 (07:21 +0000)
committergerv%gerv.net <>
Mon, 3 Jan 2005 07:21:22 +0000 (07:21 +0000)
buglist.cgi

index 1ae44467fcbc5d51b3dbc42d02d54ccfeb952a04..cc1aa814362f9ab0e0d526fa48d0a7e100f11a84 100755 (executable)
@@ -606,6 +606,11 @@ my @selectnames = map($columns->{$_}->{'name'}, @selectcolumns);
 if (!$order || $order =~ /^reuse/i) {
     if ($::COOKIE{'LASTORDER'}) {
       $order = $::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 {