summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-11-13 01:06:32 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-11-13 01:06:32 +0100
commit79572c55e076a128718a7e7daf202be95f33df25 (patch)
tree5f9be2f0964999180c366a9af88ff22e97031bac /Bugzilla
parent3cd0d0cbeb06d6d39564f6d837bad276cfed55d4 (diff)
downloadbugzilla-79572c55e076a128718a7e7daf202be95f33df25.tar.gz
bugzilla-79572c55e076a128718a7e7daf202be95f33df25.tar.xz
Bug 611623: The alias is not filtered in QuickSearch when passed to show_bug.cgi
r=glob a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Quicksearch.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index f98bd54d2..b2151ba3a 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -248,6 +248,7 @@ sub _handle_alias {
my $is_alias = Bugzilla->dbh->selectrow_array(
q{SELECT 1 FROM bugs WHERE alias = ?}, undef, $alias);
if ($is_alias) {
+ $alias = url_quote($alias);
print Bugzilla->cgi->redirect(
-uri => correct_urlbase() . "show_bug.cgi?id=$alias");
exit;