diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 7310e399..e6ea0840 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -499,7 +499,7 @@ function get_preg($argument, $regexp) { case 'macAddress': $pregexpr = '/^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/'; break; - case 'date': + case 'date': // 31-12-2012 $pregexpr = '/^((0?[1-9])|([1-2][0-9])|30|31)\\-((0?[1-9])|(1[0-2]))\\-[1-3][0-9][0-9][0-9]$/'; break; case 'date2': @@ -532,6 +532,9 @@ function get_preg($argument, $regexp) { case 'ascii': // ASCII $pregexpr = '/^[' . chr(1) . '-' . chr(128) . ']*$/'; break; + case 'objectClass': + $pregexpr = '/^[[:alnum:]_]+$/'; + break; } if ($pregexpr!='') if (preg_match($pregexpr, $argument)) {