X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=64ed2b3c5b4efd9267a5aaced46255c54cb13c88;hb=269cea4043760b0568f4c2aec7d5faacc6c2096e;hp=999a183c57e6ba9d9cc5eb1e738e4cd56ff22d99;hpb=e10af923d86fc6521b0389dd0c1f6f98573cc5fb;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 999a183..64ed2b3 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -278,6 +278,22 @@ Copyright 2006-2009 Matteo Nasta Copyright 2006-2009 Matteo Nastasi (aka mop)

'); +$escinp_from = array( "\"" ); +$escinp_to = array( """ ); + +function escinput($s) +{ + GLOBAL $escinp_from, $escinp_to; + + return str_replace($escinp_from, $escinp_to, $s); +} + +function eschtml($s) +{ + return htmlentities($s); +} + + function langtolng($lang) { GLOBAL $G_lang; @@ -2035,7 +2051,9 @@ class Room { if ($login_exists) $idx = -($idx + 1); log_main(sprintf("TROVATO LIBERO A [%d] sess [%s] name [%s] count [%d] [%s]", $idx, $sess, $name_new, count($this->user),$this->user[$real_idx]->name)); - return ($this->user[$real_idx]); + + $ret = $this->user[$real_idx]; + return ($ret); } return ($G_false);