summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2011-06-07 13:21:36 +0000
committerUrban Müller2011-06-07 13:21:36 +0000
commit2a893619df343f81213f0aad39cafbab104ecca7 (patch)
treeac768295efe1a94e46858db0ef4e80f00451c028
parentff6b83fd1cd9f82e301f7443a3b67ba38d12f537 (diff)
downloaditools-2a893619df343f81213f0aad39cafbab104ecca7.tar.gz
itools-2a893619df343f81213f0aad39cafbab104ecca7.tar.bz2
itools-2a893619df343f81213f0aad39cafbab104ecca7.zip
performance, fix value "0"
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index ea55a69..b6cb955 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) ? $result : escapeshellarg($result);
+ return preg_match('#^[-a-z0-9./_:,]+$#', $result) ? $result : escapeshellarg($result);
}