[ticket/10876] Update regex to a version which still matches our tests

PHPBB3-10876
This commit is contained in:
Joas Schilling 2012-08-21 11:41:27 +02:00
parent 86433b5d3b
commit c20179db72

View file

@ -209,7 +209,7 @@ class phpbb_template_filter extends php_user_filter
*/
$data = preg_replace('#\?\>([\r\n])#', '?>\1\1', $data);
$data = preg_replace('~(?<!^)(<\?php.+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
$data = str_replace('/**/?>', "?>\n", $data);
$data = str_replace('?><?php', '', $data);
return $data;