From 6506182502bc1a1c582abe68a8e29541bdac9698 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 3 Apr 2010 13:31:13 +0000 Subject: [PATCH] added check for hostObject values --- lam/lib/account.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index b9f0d4c9..a2ceb485 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -386,6 +386,9 @@ function get_preg($argument, $regexp) { case 'hostname': $pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u'; break; + case 'hostObject': + $pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u'; + break; case 'usernameList': // comma separated list of user names case 'groupnameList': // comma separated list of group names $pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';