From 028460a5c1de4833bb1dcfaa945c1292952bf923 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 17 Jan 2011 21:08:16 -0800 Subject: tracking errant bin2hex call --- boot.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 13e1e1793..85e159883 100644 --- a/boot.php +++ b/boot.php @@ -945,6 +945,11 @@ function unxmlify($s) { if(! function_exists('hex2bin')) { function hex2bin($s) { + if(! ctype_xdigit($s)) { + logger('hex2bin: illegal input: ' . print_r(debug_backtrace(), true)); + return($s); + } + return(pack("H*",$s)); }} -- cgit v1.2.3