Bug 55753 - if order is the first param to buglist.cgi, can't resort. Patch by gerv; r=bbaetz.

git-svn-id: svn://10.0.0.236/trunk@126747 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2002-08-08 10:42:34 +00:00
parent 3ee4cc4bc0
commit f931898d0f

View File

@@ -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).