ajax.php
changeset 81 d7fc25acd3f3
parent 80 cb7dde69c301
child 91 8079b0288e8e
--- a/ajax.php	Wed Aug 01 13:39:27 2007 -0400
+++ b/ajax.php	Sun Aug 05 15:58:50 2007 -0400
@@ -164,7 +164,7 @@
         for($i=0;$i<sizeof($u);$i++) // Can't use foreach because we need the value of $i and we need to use both $u and $n
         {
           echo "userlist[$i] = '".addslashes($n[$i])."';\n";
-          echo "namelist[$i] = '".addslashes($u[$i])."';\n";
+          echo "namelist[$i] = '".addslashes(htmlspecialchars($u[$i]))."';\n";
         }
       } else {
         die('userlist = new Array(); namelist = new Array(); errorstring=\'No page matches found.\'');