Code

Fixed strict detection (true/yes)
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Aug 2006 10:08:52 +0000 (10:08 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Aug 2006 10:08:52 +0000 (10:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4510 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 3abd10ff027470995b14001ca5231f92010513c3..4373a7b08bb1ce689348aa8f8a84af304e31b20f 100644 (file)
@@ -973,7 +973,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);