diff options
Diffstat (limited to 'lib/CatDap')
-rw-r--r-- | lib/CatDap/Controller/register.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CatDap/Controller/register.pm b/lib/CatDap/Controller/register.pm index a488181..d52971e 100644 --- a/lib/CatDap/Controller/register.pm +++ b/lib/CatDap/Controller/register.pm @@ -65,12 +65,12 @@ sub check : Local { push @errors, $c->loc('Username is not authorized to be used'); } - if ($c->request->params->{gn} !~ /^\p{IsAlnum}+$/) { + if ($c->request->params->{gn} !~ /^[\p{IsAlnum} ]+$/) { push @errors, $c->loc( 'The first name supplied contains illegal characters' ); } - if ($c->request->params->{sn} !~ /^\p{IsAlnum}+$/) { + if ($c->request->params->{sn} !~ /^[\p{IsAlnum} ]+$/) { push @errors, $c->loc( 'The surname supplied contains illegal characters' ); |