]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 104180 -   should only be used in the display for a saved query...
authorjake%acutex.net <>
Fri, 12 Oct 2001 02:51:33 +0000 (02:51 +0000)
committerjake%acutex.net <>
Fri, 12 Oct 2001 02:51:33 +0000 (02:51 +0000)
Patch by Christian Reis <kiko@async.com.br>
r= jake@acutex.net

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index e51240e0b70596e4ed0504e17b1013e8f6e0eb31..42b0c4af6da073e4fb39a03cf8bc186422fdd99b 100644 (file)
--- 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 {