From: gerv%gerv.net <> Date: Thu, 8 Aug 2002 17:42:34 +0000 (+0000) Subject: Bug 55753 - if order is the first param to buglist.cgi, can't resort. Patch by gerv... X-Git-Tag: bugzilla-2.17.1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05bc3feca1539b79ff6552ed87ee992a7a4ca0f9;p=thirdparty%2Fbugzilla.git Bug 55753 - if order is the first param to buglist.cgi, can't resort. Patch by gerv; r=bbaetz. --- diff --git a/buglist.cgi b/buglist.cgi index e8199b97c4..9c3a5df914 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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).