further sanitize nickname characters

master
Joey Hess 2010-07-04 16:12:50 -04:00
parent 472d3fba7d
commit acde957512
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ sub auth ($$) {
}
if (defined $nickname) {
$nickname=~s/\s+/_/g;
$nickname=~s/[^-_0-9[:alnum:]]+//g;
$session->param(nickname => $nickname);
}
}