diff --git a/www/includes/ldap_functions.inc.php b/www/includes/ldap_functions.inc.php index dfdb178..4de172a 100644 --- a/www/includes/ldap_functions.inc.php +++ b/www/includes/ldap_functions.inc.php @@ -31,7 +31,7 @@ function open_ldap_connection($ldap_bind=TRUE) { exit(0); } else { - if ($SENT_HEADERS == TRUE and !preg_match('/^ldap:\/\/localhost(:[0-9]+)?$', $LDAP['uri']) and !preg_match('/^ldap:\/\/127\.0\.0\.([0-9]+)(:[0-9]+)$', $LDAP['uri'])) { + if ($SENT_HEADERS == TRUE and !preg_match('/^ldap:\/\/localhost(:[0-9]+)?$/', $LDAP['uri']) and !preg_match('/^ldap:\/\/127\.0\.0\.([0-9]+)(:[0-9]+)$/', $LDAP['uri'])) { print "
WARNING: Insecure LDAP connection to ${LDAP['uri']}
"; } ldap_close($ldap_connection);