X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=ce5d106a189896b584cd32f9c59cd3a2b382ef1d;hb=5cf7309d9937fba5b9b97c3bf0d7c6ca2db1e4df;hp=7d82d56b0ed96d75a0431d5a93c02801275bfb6f;hpb=7f9618888f9963c4a7daebeb9e3d14ef0a56b968;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 7d82d56..ce5d106 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2065,7 +2065,7 @@ class Brisk if (($bdb = BriskDB::create()) != FALSE) { $bdb->users_load(); /* MLANG: "Il nickname \'%s\' è già registrato, se il suo proprietario si autentificherà verrai rinominato d\'ufficio come ghostN." */ - if ($bdb->login_exists($name_new)) { + if ($bdb->login_exists(strtolower($name_new))) { $prestr = sprintf($mlang_brisk['nickjust'][$G_lang], xcape($name_new)); $to_user .= nickserv_msg($dt, $prestr); } @@ -2078,10 +2078,10 @@ class Brisk } while (0); } // nick chat command else if (strncmp($msg, "/info ", 6) == 0) { - $guar_user = substr($msg, 6); + $info_user = substr($msg, 6); - error_log("here [" . $guar_user."]"); - echo $this->info_show($user, $guar_user, $dt); + error_log("here [" . $info_user."][".escsql(urldecode($info_user)). "]"); + echo $this->info_show($user, urldecode($info_user), $dt); } else if (strncmp($msg, "/st ", 4) == 0) { log_main("chatt_send BEGIN"); @@ -2364,7 +2364,7 @@ class Brisk $bdb->users_load(); if ($pass != FALSE) { // TODO: here add a method to $bdb to check if the db is available. log_auth("XXX", "auth2"); - $authenticate = $bdb->login_verify($name_new, $pass, $code); + $authenticate = $bdb->login_verify(strtolower($name_new), $pass, $code); log_auth("XXX", "authenticate: ".($authenticate != FALSE ? "TRUE" : "FALSE")); if ($authenticate != FALSE) { @@ -2376,7 +2376,7 @@ class Brisk } } else { - $login_exists = $bdb->login_exists($name_new); + $login_exists = $bdb->login_exists(strtolower($name_new)); } } else {