Fixing special characters in profile
This commit is contained in:
parent
8868b79f5c
commit
f891710d79
|
|
@ -72,6 +72,9 @@ class UserController extends Controller
|
|||
$username = $args['username'];
|
||||
}
|
||||
|
||||
$username = str_replace('+', '%2b', $username);
|
||||
$username = urldecode($username);
|
||||
|
||||
$ircLowerSymbols = array("\\"=>"|", "["=>"{", "]"=>"}", "~"=>"^");
|
||||
$usernameCanonical = strtr($username, $ircLowerSymbols);
|
||||
$usernameCanonical = strtolower($usernameCanonical);
|
||||
|
|
|
|||
Loading…
Reference in New Issue