diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index 6eaa3b759..f1c9a334f 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -1343,7 +1343,7 @@ class rcube_ldap extends rcube_addressbook */ private static function _ber_addseq($str, $identifier) { - $len = sprintf("%x", strlen($str)/2); + $len = dechex(strlen($str)/2); if (strlen($len) % 2 != 0) $len = '0'.$len; @@ -1355,7 +1355,7 @@ class rcube_ldap extends rcube_addressbook */ private static function _ber_encode_int($offset) { - $val = sprintf("%x", $offset); + $val = dechex($offset); $prefix = ''; // check if bit 8 of high byte is 1 |