diff options
author | Buchan Milne <buchan@mageia.org> | 2011-02-15 22:33:01 +0000 |
---|---|---|
committer | Buchan Milne <buchan@mageia.org> | 2011-02-15 22:33:01 +0000 |
commit | e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f (patch) | |
tree | 7fca791bb41bbff16889d0b690f5a8aa99b62abf /lib | |
parent | bf51f6530087b954dcecd45673128653a57b44fc (diff) | |
download | identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar.gz identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar.bz2 identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar.xz identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.zip |
Allow spaces in names
Diffstat (limited to 'lib')
-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' ); |