summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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])