From 6f3fa964c637913c8b5565facae60a4edbd61d38 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 13 Jun 2011 17:33:51 -0400
Subject: [PATCH] Use dechex() instead of sprintf() for base conversion
---
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 6eaa3b7..f1c9a33 100644
--- a/program/include/rcube_ldap.php
+++ b/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
--
Gitblit v1.9.1