mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10876] Revert "add newline after php tag"-regex back to 3.0 version
The old regex just results in some additional new lines in the output. So this is only beautifying and considered unworthy in respect to the dying php servers we observed on windows. PHPBB3-10876
This commit is contained in:
parent
d1e5686866
commit
86433b5d3b
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ class phpbb_template_filter extends php_user_filter
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$data = preg_replace('~(?<!^)(<\?php(?:(?<!\?>).)+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
|
$data = preg_replace('#\?\>([\r\n])#', '?>\1\1', $data);
|
||||||
$data = str_replace('/**/?>', "?>\n", $data);
|
$data = str_replace('/**/?>', "?>\n", $data);
|
||||||
$data = str_replace('?><?php', '', $data);
|
$data = str_replace('?><?php', '', $data);
|
||||||
return $data;
|
return $data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue