From e1036b392202a5c198f1bf2d479e21da0240138f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 26 Apr 2011 12:08:09 +0000 Subject: - relax check on first name and usrname ( #966 ) --- lib/CatDap/Controller/register.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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' ); -- cgit v1.2.1