summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2011-06-07 13:07:17 +0000
committerUrban Müller2011-06-07 13:07:17 +0000
commit7165bc14ade7f1a17cff76580bba9332c4da9f59 (patch)
tree36738362ed346a1a1ff8f863b2fb3da41acffceb /it.class
parent8207b6b8510901262cdbdf3ad12004f8bb7101bf (diff)
downloaditools-7165bc14ade7f1a17cff76580bba9332c4da9f59.tar.gz
itools-7165bc14ade7f1a17cff76580bba9332c4da9f59.tar.bz2
itools-7165bc14ade7f1a17cff76580bba9332c4da9f59.zip
only escape args when needed
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 6ec2ca2..e0e85a9 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 escapeshellarg($result);
+ return it::match('[^-a-z0-9./_:,]', $result) ? escapeshellarg($result) : $result;
}