function xcape($s)
{
- return (str_replace('\\', '\\\\', str_replace('@', '@', str_replace('|', '¦', htmlentities($s,ENT_COMPAT,"UTF-8")))));
+ $from = array ( '\\', '@', '|' );
+ $to = array ( '\\\\', '@', '¦' );
+
+ return (str_replace($from, $to, htmlentities($s,ENT_COMPAT,"UTF-8")));
}
$bri->garbage_manager(TRUE);
/* try login */
$name = substr($name, 0, 12);
+ $name = str_replace(" ", "_", $name);
if (($user = &$bri->add_user(&$sess, &$idx, $name)) != FALSE) {
$ACTION = "room";