corretta gestione nomi con lettere strane
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 21 Dec 2008 17:47:06 +0000 (17:47 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 21 Dec 2008 17:47:06 +0000 (17:47 +0000)
web/index_wr.php

index 7ca82bc..b7ccc25 100644 (file)
@@ -78,7 +78,7 @@ if (($user = &$room->get_user($sess, &$idx)) == FALSE) {
         // echo '2|'.$argz[1].'|'.$token.'|'.$_SERVER['REMOTE_ADDR'].'|'.$curtime.'|';
         // exit;
 
-        if (($login_new = validate_name($cli_name)) != FALSE) {
+        if (($login_new = validate_name(urldecode($cli_name))) != FALSE) {
           if ($chals->add($login_new, $token, $_SERVER['REMOTE_ADDR'], $curtime) != FALSE) {
             echo '0|'.$token;
           }