diff --git a/src-php/EMT.php b/src-php/EMT.php index 5d46d4a..9bd3634 100644 --- a/src-php/EMT.php +++ b/src-php/EMT.php @@ -210,7 +210,7 @@ public function safe_blocks($text, $way, $show = true) $safeblocks = true === $way ? $this->_safe_blocks : array_reverse($this->_safe_blocks); foreach ($safeblocks as $block) { - $text = preg_replace_callback("/({$block['open']})(.+?)({$block['close']})/s", create_function('$m','return $m[1].'.$safeType . '.$m[3];') , $text); + $text = preg_replace_callback("/({$block['open']})(.*?)({$block['close']})/s", create_function('$m','return $m[1].'.$safeType . '.$m[3];') , $text); } }