wrong additional params to xcape fixed
[brisk.git] / web / briskin5 / Obj / briskin5.phh
index 881bfa4..b7c703b 100644 (file)
@@ -1051,7 +1051,7 @@ class Bin5 {
        //      if ($user_cur->sess == '' || $user_cur->stat != 'room')
        if ($user_cur->sess == '')
          continue;
-       if ($user_cur->name == $name_new) {
+        if (strcasecmp($user_cur->name, $name_new) == 0) {
          $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
 
           $premsg = sprintf($mlang_brisk['nickdupl'][$G_lang], xcape($name_new));
@@ -1108,7 +1108,7 @@ class Bin5 {
               $itin = ($user->flags & USER_FLAG_AUTH ? "<i>" : "");
               $itou = ($user->flags & USER_FLAG_AUTH ? "</i>" : "");
              $user_cur->comm[$user_cur->step % COMM_N] .= sprintf('$("myname").innerHTML = "<b>%s%s%s</b>";', 
-                                                                  $itin, xcape($user->name,ENT_COMPAT,"UTF-8"), $itou);
+                                                                  $itin, xcape($user->name), $itou);
             }
            $user_cur->step_inc();
          }