From e7f79fbb43ada080a9ef9b3f91b5bbeb0d79da52 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 29 Dec 2004 08:49:09 +0000 Subject: [PATCH] added DNS names as regex --- lam/lib/account.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 99d581ef..202a833a 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -499,6 +499,9 @@ function get_preg($argument, $regexp) { case 'sambaLogonHours': $pregexpr = '/^[0-9a-fA-F]{42}$/'; break; + case 'DNSname': + $pregexpr = '/^[0-9a-zA-Z_-]+(\\.[0-9a-zA-Z_-]+)*$/'; + break; } if ($pregexpr!='') if (preg_match($pregexpr, $argument)) {