summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd7e49c)
raw | patch | inline | side by side (parent: bd7e49c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Aug 2006 10:10:41 +0000 (10:10 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Aug 2006 10:10:41 +0000 (10:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4511 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 6dad0634d3ba2862b894e77f142d4af8f64af05e..c6e9943e7c0d6f6ed29af80565131db8e8c25a43 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* 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);