tracking errant bin2hex call
This commit is contained in:
parent
fa1f2ce8f3
commit
028460a5c1
3 changed files with 9 additions and 4 deletions
5
boot.php
5
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));
|
||||
}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue