From ff6b83fd1cd9f82e301f7443a3b67ba38d12f537 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 7 Jun 2011 13:15:37 +0000 Subject: bugfix: handle empty string --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index e0e85a9..ea55a69 100644 --- a/it.class +++ b/it.class @@ -524,7 +524,7 @@ static function _exec_quotevalue($value, $errmsg = "") if (it::match('^-', $result)) it::fatal("leading - in value: " . $errmsg); - return it::match('[^-a-z0-9./_:,]', $result) ? escapeshellarg($result) : $result; + return it::match('^[-a-z0-9./_:,]+$', $result) ? $result : escapeshellarg($result); } -- cgit v1.2.3