X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fecfa539885a7a7e2a7af73eafcac6f68326ead3..84efd3e00ff91cd486c15b4291abe400e61afd7b:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index a70773506..8244fa996 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1471,7 +1471,9 @@ sub emailuser ($) { if (defined $user && $user =~ m/(.+)@/) { my $nick=$1; # remove any characters from not allowed in wiki files - $nick=~s/[^$config{wiki_file_chars}]/_/g; + # support use w/o %config set + my $chars = defined $config{wiki_file_chars} ? $config{wiki_file_chars} : "-[:alnum:]+/.:_"; + $nick=~s/[^$chars]/_/g; return $nick; } return;