thomascube
2011-06-13 6f3fa964c637913c8b5565facae60a4edbd61d38
Use dechex() instead of sprintf() for base conversion

1 files modified
4 ■■■■ changed files
program/include/rcube_ldap.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_ldap.php
@@ -1343,7 +1343,7 @@
     */
    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 @@
     */
    private static function _ber_encode_int($offset)
    {
        $val = sprintf("%x", $offset);
        $val = dechex($offset);
        $prefix = '';
        
        // check if bit 8 of high byte is 1