Use Horde_String.
authorJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 16:46:00 +0000 (18:46 +0200)
committerJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 16:46:00 +0000 (18:46 +0200)
framework/Ldap/lib/Horde/Ldap/Entry.php
framework/Ldap/lib/Horde/Ldap/Util.php

index cc094eb..0dcca6b 100644 (file)
@@ -453,7 +453,7 @@ class Horde_Ldap_Entry
             if ($this->exists($k)) {
                 $this->_attributes[$k] = array_unique(array_merge($this->_attributes[$k], $v));
             } else {
-                $this->_map[strtolower($k)] = $k;
+                $this->_map[Horde_String::lower($k)] = $k;
                 $this->_attributes[$k]      = $v;
             }
 
index 8f0cfff..c41cc2c 100644 (file)
@@ -374,10 +374,10 @@ class Horde_Ldap_Util
                         $ocl = substr($ocl, 4);
                     } else {
                         if ($options['casefold'] == 'upper') {
-                            $ocl = strtoupper($ocl);
+                            $ocl = Horde_String::upper($ocl);
                         }
                         if ($options['casefold'] == 'lower') {
-                            $ocl = strtolower($ocl);
+                            $ocl = Horde_String::lower($ocl);
                         }
                         $ocl = self::escapeDNValue(array($ocl));
                         $ocl = $ocl[0];