summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2012-02-14 11:50:48 +0000
committerChristian Schneider2012-02-14 11:50:48 +0000
commitda59d3b21f7775153d1946b1d67585393e8316b4 (patch)
tree6ebccbab2320e8879552235da6d3850e725b18d0
parent0a6849fc31206318d6a86a0ccfff48556934c486 (diff)
downloaditools-da59d3b21f7775153d1946b1d67585393e8316b4.tar.gz
itools-da59d3b21f7775153d1946b1d67585393e8316b4.tar.bz2
itools-da59d3b21f7775153d1946b1d67585393e8316b4.zip
Option exec (modifier /e) to it::replace has been removed for security reasons
-rw-r--r--it.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it.class b/it.class
index 4d6d875..e31afd1 100644
--- a/it.class
+++ b/it.class
@@ -323,12 +323,14 @@ static function convertregex($pattern, $p = array())
if (!$p['casesensitive'])
$modifiers .= 'i';
+ if ($p['exec'])
+ it::fatal("Option exec to it::replace has been removed for security reasons");
+
foreach (array(
'multiline' => 'm',
'singleline' => 's',
'utf8' => 'u',
'extended' => 'x',
- 'exec' => 'e',
) as $key => $mod)
{
if ($p[$key])