]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 147486 - Fixes cross site scripting issues; first checked in on the 2.14.1 branch...
authorpreed%sigkill.com <>
Sat, 1 Jun 2002 16:33:18 +0000 (16:33 +0000)
committerpreed%sigkill.com <>
Sat, 1 Jun 2002 16:33:18 +0000 (16:33 +0000)
editusers.cgi

index 06c293e2d8a3e496b7f059b1b63886f858e43892..ebc07f2e40dd6579a7d853d057bcdc6af40fc93e 100755 (executable)
@@ -343,7 +343,7 @@ if ($action eq 'list') {
             $s = "<STRIKE>";
             $e = "</STRIKE>";
         }
-        $realname ||= "<FONT COLOR=\"red\">missing</FONT>";
+        $realname = ($realname ? html_quote($realname) : "<FONT COLOR=\"red\">missing</FONT>");
         print "<TR>\n";
         print "  <TD VALIGN=\"top\"><A HREF=\"editusers.cgi?action=edit&user=", url_quote($user), "\"><B>$s$user$e</B></A></TD>\n";
         print "  <TD VALIGN=\"top\">$s$realname$e</TD>\n";
@@ -542,7 +542,7 @@ if ($action eq 'del') {
              WHERE login_name=" . SqlQuote($user));
     my ($realname, $groupset) = 
       FetchSQLData();
-    $realname ||= "<FONT COLOR=\"red\">missing</FONT>";
+    $realname = ($realname ? html_quote($realname) : "<FONT COLOR=\"red\">missing</FONT>");
     
     print "<TABLE BORDER=1 CELLPADDING=4 CELLSPACING=0>\n";
     print "<TR BGCOLOR=\"#6666FF\">\n";