aboutsummaryrefslogtreecommitdiffstats
path: root/colchange.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-03-01 21:54:34 +0000
committerlpsolit%gmail.com <>2009-03-01 21:54:34 +0000
commit573ea7b8b5bfaa6bda751e31fd50954c2ee22b39 (patch)
tree6e6fe3263169906f0640a2a4dc41747dbb6a3f4e /colchange.cgi
parente43d323b6348537adf58d8f1b8b5d1193220f7ac (diff)
downloadbugs-573ea7b8b5bfaa6bda751e31fd50954c2ee22b39.tar
bugs-573ea7b8b5bfaa6bda751e31fd50954c2ee22b39.tar.gz
bugs-573ea7b8b5bfaa6bda751e31fd50954c2ee22b39.tar.bz2
bugs-573ea7b8b5bfaa6bda751e31fd50954c2ee22b39.tar.xz
bugs-573ea7b8b5bfaa6bda751e31fd50954c2ee22b39.zip
Bug 480858: Change Columns fails to escape search name when re-running saved search - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bbaetz a=LpSolit
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-xcolchange.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/colchange.cgi b/colchange.cgi
index 5c44df3ed..532bfd4b6 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -29,6 +29,7 @@ use lib qw(. lib);
use Bugzilla;
use Bugzilla::Constants;
+use Bugzilla::Util;
use Bugzilla::CGI;
use Bugzilla::Search::Saved;
use Bugzilla::Error;
@@ -185,7 +186,7 @@ if (defined $cgi->param('query_based_on')) {
if ($search) {
$vars->{'saved_search'} = $search;
- $vars->{'buffer'} = "cmdtype=runnamed&namedcmd=".$search->name;
+ $vars->{'buffer'} = "cmdtype=runnamed&namedcmd=". url_quote($search->name);
my $params = new Bugzilla::CGI($search->url);
if ($params->param('columnlist')) {