lib/ext
Aleksander Machniak
machniak at kolabsys.com
Wed Dec 4 08:49:31 CET 2013
lib/ext/Net/LDAP3.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b3703b83ca8785b6856177bb4dd80f4db3bb54b6
Author: Aleksander Machniak <alec at alec.pl>
Date: Wed Dec 4 08:49:01 2013 +0100
Skip unique attribute searches when searching string doesn't look like UUID
diff --git a/lib/ext/Net/LDAP3.php b/lib/ext/Net/LDAP3.php
index e661edb..9a4ecb2 100644
--- a/lib/ext/Net/LDAP3.php
+++ b/lib/ext/Net/LDAP3.php
@@ -823,8 +823,8 @@ class Net_LDAP3
$this->_debug("$subject is not a dn");
- if (strlen($subject) < 16) {
- $this->_debug("$subject is too short to be a unique identifier");
+ if (strlen($subject) < 32 || preg_match('/[^a-fA-F0-9-]/', $subject)) {
+ $this->_debug("$subject is not a unique identifier");
return;
}
More information about the commits
mailing list