From: Joey Hess Date: Sun, 4 Jul 2010 20:12:50 +0000 (-0400) Subject: further sanitize nickname characters X-Git-Tag: 3.20100704~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=acde95751260e305da3d8d84b6b09dcd3b2d03b6;p=ikiwiki.git further sanitize nickname characters --- diff --git a/IkiWiki/Plugin/openid.pm b/IkiWiki/Plugin/openid.pm index d393afd23..4727577f3 100644 --- a/IkiWiki/Plugin/openid.pm +++ b/IkiWiki/Plugin/openid.pm @@ -212,6 +212,7 @@ sub auth ($$) { } if (defined $nickname) { $nickname=~s/\s+/_/g; + $nickname=~s/[^-_0-9[:alnum:]]+//g; $session->param(nickname => $nickname); } }