Fixing special characters in profile

This commit is contained in:
rootcoma 2013-12-05 16:29:04 -08:00
parent 8868b79f5c
commit f891710d79
1 changed files with 3 additions and 0 deletions

View File

@ -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);