Permit whitespace in usernames (for LDAP support)

This commit is contained in:
Oliver Gorwits
2015-02-25 21:19:25 +00:00
parent 7df5bd7947
commit 1349e6d686

View File

@@ -16,9 +16,7 @@ register_admin_task({
sub _sanity_ok {
return 0 unless param('username')
and param('username') =~ m/^[[:print:]]+$/
and param('username') !~ m/[[:space:]]/;
and param('username') =~ m/^[[:print:] ]+$/;
return 1;
}