]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 55753 - if order is the first param to buglist.cgi, can't resort. Patch by gerv...
authorgerv%gerv.net <>
Thu, 8 Aug 2002 17:42:34 +0000 (17:42 +0000)
committergerv%gerv.net <>
Thu, 8 Aug 2002 17:42:34 +0000 (17:42 +0000)
buglist.cgi

index e8199b97c4dc9e301b24bc9d5d13def95ccb874f..9c3a5df914ee6629e759ccd93ba9baeba842e8fc 100755 (executable)
@@ -1494,7 +1494,7 @@ $vars->{'closedstates'} = ['CLOSED', 'VERIFIED', 'RESOLVED'];
 # then we remove all non-query fields from it, f.e. the sort order (order)
 # and command type (cmdtype) fields.
 $vars->{'urlquerypart'} = $::buffer;
-$vars->{'urlquerypart'} =~ s/[&?](order|cmdtype)=[^&]*//g;
+$vars->{'urlquerypart'} =~ s/(order|cmdtype)=[^&]*&?//g;
 $vars->{'order'} = $order;
 
 # The user's login account name (i.e. email address).