automatically adding brackets around the ldap-search-filter, if the admin forgets it

This commit is contained in:
Ralf Becker 2006-11-12 19:23:28 +00:00
parent 6211b1457d
commit e065856c7e

View File

@ -148,3 +148,15 @@
} }
} }
} }
/**
* Add bracket around the ldap_search_filter, if admin forgot it
*
* @param array $settings
*/
function ldap_search_filter(&$settings)
{
$filter =& $settings['ldap_search_filter'];
if ($filter && $filter{0} != '(') $filter = '('.$filter.')';
}