From 109c2f39509600e7344124b0ce2152538a8c7e51 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 26 Jun 2020 23:45:09 +0200 Subject: avoid reporting null bytes in it::exec --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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 } -- cgit v1.2.3