From: cajus Date: Thu, 24 Aug 2006 10:10:41 +0000 (+0000) Subject: Fixed strict detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=82466f795715ab36b8d444ff1d186e5ed4043ef2;p=gosa.git Fixed strict detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 6dad0634d..c6e9943e7 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -984,7 +984,7 @@ function is_uid($uid) /* STRICT adds spaces and case insenstivity to the uid check. This is dangerous and should not be used. */ - if (isset($config->current['STRICT']) && preg_match('/^no$/i', $config->current['STRICT'])){ + if (isset($config->current['STRICT']) && preg_match('/^(no|false)$/i', $config->current['STRICT'])){ return preg_match ("/^[a-z0-9 _.-]+$/i", $uid); } else { return preg_match ("/^[a-z0-9_-]+$/", $uid);