diff options
author | Urban Müller | 2011-06-07 13:15:37 +0000 |
---|---|---|
committer | Urban Müller | 2011-06-07 13:15:37 +0000 |
commit | ff6b83fd1cd9f82e301f7443a3b67ba38d12f537 (patch) | |
tree | a88f5408c63f87abc456d6afe29a67213548c069 | |
parent | 7165bc14ade7f1a17cff76580bba9332c4da9f59 (diff) | |
download | itools-ff6b83fd1cd9f82e301f7443a3b67ba38d12f537.tar.gz itools-ff6b83fd1cd9f82e301f7443a3b67ba38d12f537.tar.bz2 itools-ff6b83fd1cd9f82e301f7443a3b67ba38d12f537.zip |
bugfix: handle empty string
-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 it::match('[^-a-z0-9./_:,]', $result) ? escapeshellarg($result) : $result; + return it::match('^[-a-z0-9./_:,]+$', $result) ? $result : escapeshellarg($result); } |