prevent users from registering with name that is not a valid wikifile

avoids XSS attacks and is generally a good limitation
master
joey 2006-04-25 05:53:22 +00:00
parent 2f241a35ce
commit bfa96ad282
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ sub cgi_signin ($$) { #{{{
validate => sub {
my $name=shift;
length $name &&
$name=~/$wiki_file_regexp/ &&
! userinfo_get($name, "regdate");
},
);