From 6f3fa964c637913c8b5565facae60a4edbd61d38 Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 13 Jun 2011 21:33:51 +0000 Subject: Use dechex() instead of sprintf() for base conversion --- program/include/rcube_ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program') 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 -- cgit v1.2.3