aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-16 20:34:21 -0700
committerfriendica <info@friendica.com>2014-03-16 20:34:21 -0700
commitecb2e52a7411a8a39b8030964604f0f28f2facce (patch)
treebbe36d04ddb359002cc0aa6976dd6a2c34d73747 /include/text.php
parent6f9fde997bd0d6c59045220a1afc2060b857c83a (diff)
downloadvolse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.tar.gz
volse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.tar.bz2
volse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.zip
little fixes of hopefully nil significance
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 53b92c05f..e3b1f1c4e 100755
--- a/include/text.php
+++ b/include/text.php
@@ -278,6 +278,11 @@ function hex2bin($s) {
if(! (is_string($s) && strlen($s)))
return '';
+ if(strlen($s) & 1) {
+ logger('hex2bin: illegal hex string: ' . $s);
+ return $s;
+ }
+
if(! ctype_xdigit($s)) {
return($s);
}