X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/b831d4a6f130fcf607f9b217b6d1f41cf3695171..4fc4e78cd87926cd0f5e4a221ea6cf2c3ab0bb95:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index 53eb8235b..dfdd0fe91 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1467,7 +1467,10 @@ sub openiduser ($) { sub emailuser ($) { my $user=shift; if (defined $user && $user =~ m/(.+)@/) { - return $1; + my $nick=$1; + # remove any characters from not allowed in wiki files + $nick=~s/[^$config{wiki_file_chars}]/_/g; + return $nick; } return; }