From 03fce95604afe83b6fdd8ab6274860dfe53bf54c Mon Sep 17 00:00:00 2001 From: Paul Weber Date: Tue, 2 Feb 2021 06:27:28 +0100 Subject: [PATCH] Remove unused e flag from preg_replace Since it causes problems with newer php version, is not used anyway and the regular expression does not execute, the e flag has been removed. --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 330d831..403eb98 100644 --- a/syntax.php +++ b/syntax.php @@ -108,7 +108,7 @@ function render($mode, Doku_Renderer $renderer, $data) { // remove toc, section edit buttons and category tags $patterns = array('!
.*?(
\n)!s', - '##e', + '##', '!
.*?
!s'); $replace = array('','',''); $alpha_data = preg_replace($patterns, $replace, $alpha_data);