changed check for NIS recipient

This commit is contained in:
Roland Gruber 2011-04-19 14:30:26 +00:00
parent e4f99e4180
commit d189ee9e00
1 changed files with 1 additions and 3 deletions

View File

@ -399,6 +399,7 @@ function get_preg($argument, $regexp) {
case "telephone": // Allow letters, numbers, space, brackets, /-+.
$pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/';
break;
case 'nis_recipient':
case "email":
$pregexpr = '/^([0-9a-zA-Z+\\/\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';
break;
@ -459,9 +460,6 @@ function get_preg($argument, $regexp) {
case 'nis_alias':
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
break;
case 'nis_recipient':
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
break;
case 'country': // Allow all letters and space
$pregexpr = '/^[[:alpha:]]([[:alpha:] ])+$/u';
break;