improved gecos check

This commit is contained in:
Roland Gruber 2010-10-08 19:00:35 +00:00
parent 813254f335
commit 38cb096ce3
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ function get_preg($argument, $regexp) {
$pregexpr = '/^(([-][1])|([[:digit:]]*))$/'; $pregexpr = '/^(([-][1])|([[:digit:]]*))$/';
break; break;
case 'gecos': case 'gecos':
$pregexpr = '/^[a-zA-z0-9 \\._-]+([,][a-zA-z0-9 \\._-]+)*$/'; $pregexpr = '/^[[:alnum:] \\._-]+([,][[:alnum:] \\._-]+)*$/u';
break; break;
case 'macAddress': case 'macAddress':
$pregexpr = '/^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/'; $pregexpr = '/^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/';