aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-17 21:08:16 -0800
committerFriendika <info@friendika.com>2011-01-17 21:08:16 -0800
commit028460a5c1de4833bb1dcfaa945c1292952bf923 (patch)
tree2377a23718c3406206f03b65aad2a9f5b1eb8b12 /boot.php
parentfa1f2ce8f38962b97c4a6a327c5f50e238eabb9b (diff)
downloadvolse-hubzilla-028460a5c1de4833bb1dcfaa945c1292952bf923.tar.gz
volse-hubzilla-028460a5c1de4833bb1dcfaa945c1292952bf923.tar.bz2
volse-hubzilla-028460a5c1de4833bb1dcfaa945c1292952bf923.zip
tracking errant bin2hex call
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php5
1 files changed, 5 insertions, 0 deletions
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));
}}