summaryrefslogtreecommitdiff
path: root/program/include/rcube_ldap.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-06-13 21:33:51 +0000
committerthomascube <thomas@roundcube.net>2011-06-13 21:33:51 +0000
commit6f3fa964c637913c8b5565facae60a4edbd61d38 (patch)
tree1a4c56b7d426e2de8511b4c455e45007df37b1a6 /program/include/rcube_ldap.php
parent79569231dbc70af3f10cf6614e219fa852e5ee5d (diff)
Use dechex() instead of sprintf() for base conversion
Diffstat (limited to 'program/include/rcube_ldap.php')
-rw-r--r--program/include/rcube_ldap.php4
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