aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuchan Milne <buchan@mageia.org>2011-02-15 22:33:01 +0000
committerBuchan Milne <buchan@mageia.org>2011-02-15 22:33:01 +0000
commite245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f (patch)
tree7fca791bb41bbff16889d0b690f5a8aa99b62abf
parentbf51f6530087b954dcecd45673128653a57b44fc (diff)
downloadidentity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar
identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar.gz
identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar.bz2
identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.tar.xz
identity-e245fa424e6a6f7dd3a1da5e56a6b90bf7780d6f.zip
Allow spaces in names
-rw-r--r--lib/CatDap/Controller/register.pm4
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'
);