@@ -62,10 +62,8 @@ if (!Bugzilla->feature('new_charts')) {
6262# Go back to query.cgi if we are adding a boolean chart parameter.
6363if (grep (/ ^cmd-/ , $cgi -> param())) {
6464 my $params = $cgi -> canonicalise_query(" format" , " ctype" , " action" );
65- print $cgi -> redirect(" query.cgi?format="
66- . $cgi -> param(' query_format' )
67- . ($params ? " &$params " : " " ));
68- exit ;
65+ $cgi -> base_redirect(" query.cgi?format="
66+ . $cgi -> param(' query_format' ) . ($params ? " &$params " : ' ' ));
6967}
7068
7169my $action = $cgi -> param(' action' );
@@ -87,8 +85,7 @@ $action ||= "assemble";
8785# Go to buglist.cgi if we are doing a search.
8886if ($action eq " search" ) {
8987 my $params = $cgi -> canonicalise_query(" format" , " ctype" , " action" );
90- print $cgi -> redirect(" buglist.cgi" . ($params ? " ?$params " : " " ));
91- exit ;
88+ $cgi -> base_redirect(' buglist.cgi' . ($params ? " ?$params " : " " ));
9289}
9390
9491$user -> in_group(Bugzilla-> params-> {" chartgroup" }) || ThrowUserError(
@@ -224,11 +221,9 @@ elsif ($action eq "convert_search") {
224221 my $params = new Bugzilla::CGI($query -> edit_link);
225222
226223 # These two parameters conflict with the one below.
227- $url = $params -> canonicalise_query(' format' , ' query_format' );
228- $url = ' &' . html_quote($url );
224+ $url = ' &' . $params -> canonicalise_query(' format' , ' query_format' );
229225 }
230- print $cgi -> redirect(-location => Bugzilla-> localconfig-> {urlbase }
231- . " query.cgi?format=create-series$url " );
226+ $cgi -> base_redirect(" query.cgi?format=create-series$url " );
232227}
233228else {
234229 ThrowUserError(' unknown_action' , {action => $action });
0 commit comments