Browse Source

That should fix the changes.
Must not '*$var*' -- use "*$var*" or '*'.$var.'*'

Tyler Akins 24 years ago
parent
commit
3bb8c89d5e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      functions/abook_ldap_server.php

+ 2 - 2
functions/abook_ldap_server.php

@@ -131,8 +131,8 @@
 
        // Encode the expression
        $expr = $this->charset_encode($expr);
-       if(!ereg('\*', $expr)) 
-	 $expr = '*$expr*';
+       if(!ereg('\\*', $expr)) 
+	 $expr = "*$expr*";
        $expression = "cn=$expr";
 
        // Make sure connection is there