diff options
author | Urban Müller | 2011-06-07 13:07:17 +0000 |
---|---|---|
committer | Urban Müller | 2011-06-07 13:07:17 +0000 |
commit | 7165bc14ade7f1a17cff76580bba9332c4da9f59 (patch) | |
tree | 36738362ed346a1a1ff8f863b2fb3da41acffceb /it.class | |
parent | 8207b6b8510901262cdbdf3ad12004f8bb7101bf (diff) | |
download | itools-7165bc14ade7f1a17cff76580bba9332c4da9f59.tar.gz itools-7165bc14ade7f1a17cff76580bba9332c4da9f59.tar.bz2 itools-7165bc14ade7f1a17cff76580bba9332c4da9f59.zip |
only escape args when needed
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |