diff -r d44492e34ab3 -r e5302cb1945c includes/functions.php --- a/includes/functions.php Mon Oct 29 23:54:48 2007 -0400 +++ b/includes/functions.php Fri Nov 02 20:37:26 2007 -0400 @@ -432,7 +432,9 @@ $str = '0x'; foreach($nums as $n) { - $str .= (string)dechex($n); + $byte = (string)dechex($n); + if ( strlen($byte) < 2 ) + $byte = '0' . $byte; } return $str; }