aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-04-26 12:08:09 +0000
committerMichael Scherer <misc@mageia.org>2011-04-26 12:08:09 +0000
commite1036b392202a5c198f1bf2d479e21da0240138f (patch)
tree4ebe69d1e84b29d53ed7923850b8951f750ef0bf
parentf5eb8fc856e050278b769386a0d2ae1741e46acd (diff)
downloadidentity-e1036b392202a5c198f1bf2d479e21da0240138f.tar
identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar.gz
identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar.bz2
identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar.xz
identity-e1036b392202a5c198f1bf2d479e21da0240138f.zip
- relax check on first name and usrname ( #966 )
-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 80dbbb9..4920175 100644
--- a/lib/CatDap/Controller/register.pm
+++ b/lib/CatDap/Controller/register.pm
@@ -66,12 +66,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'
);