summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-10-12 04:51:33 +0200
committerjake%acutex.net <>2001-10-12 04:51:33 +0200
commitfb4981afba21ff354de0de17bacf3844348f14a0 (patch)
treea3eecac6c3a022d044c78329338b64ecddce33f9 /CGI.pl
parentfe07308ba08eeb17b99f33c0a1cc19d89c010afb (diff)
downloadbugzilla-fb4981afba21ff354de0de17bacf3844348f14a0.tar.gz
bugzilla-fb4981afba21ff354de0de17bacf3844348f14a0.tar.xz
Fix for bug 104180 - &nbsp; should only be used in the display for a saved query w/a space, not in the URL.
Patch by Christian Reis <kiko@async.com.br> r= jake@acutex.net
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/CGI.pl b/CGI.pl
index e51240e0b..42b0c4af6 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -1395,11 +1395,12 @@ Edit <a href="userprefs.cgi">prefs</a>
my $anynamedqueries = 0;
while (MoreSQLData()) {
my ($name) = (FetchSQLData());
+ my $disp_name = $name;
+ $disp_name =~ s/ /&nbsp;/g;
if ($anynamedqueries || $mybugslink) { $html .= " | " }
$anynamedqueries = 1;
- $name =~ s/ /&nbsp;/g;
$html .= "<A HREF=\"buglist.cgi?cmdtype=runnamed&amp;namedcmd=" .
- url_quote($name) . "\">$name</A>\n";
+ url_quote($name) . "\">$disp_name</A>\n";
}
$html .= "</TD></TR>\n";
} else {