From 38cb096ce325116e5fa152b04eb85190cb11710e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 8 Oct 2010 19:00:35 +0000 Subject: [PATCH] improved gecos check --- lam/lib/account.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 2e0e25d9..20359aec 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -440,7 +440,7 @@ function get_preg($argument, $regexp) { $pregexpr = '/^(([-][1])|([[:digit:]]*))$/'; break; case 'gecos': - $pregexpr = '/^[a-zA-z0-9 \\._-]+([,][a-zA-z0-9 \\._-]+)*$/'; + $pregexpr = '/^[[:alnum:] \\._-]+([,][[:alnum:] \\._-]+)*$/u'; break; case 'macAddress': $pregexpr = '/^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/';