summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2020-06-26 23:45:09 +0200
committerUrban Müller2020-06-26 23:45:09 +0200
commit109c2f39509600e7344124b0ce2152538a8c7e51 (patch)
tree906ba3d4ac95c08815b0026fd06635464208aadb
parenta7adf808597c0ff5bf22ece6dda451d486a4ef34 (diff)
downloaditools-109c2f39509600e7344124b0ce2152538a8c7e51.tar.gz
itools-109c2f39509600e7344124b0ce2152538a8c7e51.tar.bz2
itools-109c2f39509600e7344124b0ce2152538a8c7e51.zip
avoid reporting null bytes in it::exec
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index fe86471..7b9e31f 100644
--- a/it.class
+++ b/it.class
@@ -719,7 +719,7 @@ static function _exec_quotevalue($value, $errmsg = "")
if (it::match('^-', $result))
it::fatal("leading - in value: " . $errmsg);
- return preg_match('#^[-a-zA-Z0-9./_:,]+$#', $result) ? $result : escapeshellarg($result);
+ return preg_match('#^[-a-zA-Z0-9./_:,]+$#', $result) ? $result : @escapeshellarg($result); # avoid reporting null bytes
}