diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-06-13 21:33:51 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-06-13 21:33:51 +0000 |
| commit | eea774e42998fd46d190da346b74b4f178420e33 (patch) | |
| tree | a1a343003b12f38a460549bf7e9a44298c6911c2 /roundcubemail | |
| parent | 859d53a25ae30b2f885ba5f0ce4e7edbb653d14a (diff) | |
Use dechex() instead of sprintf() for base conversion
git-svn-id: https://svn.roundcube.net/trunk@4849 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/include/rcube_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_ldap.php b/roundcubemail/program/include/rcube_ldap.php index 6eaa3b759..f1c9a334f 100644 --- a/roundcubemail/program/include/rcube_ldap.php +++ b/roundcubemail/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 |
