summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-02-29 17:00:06 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-02-29 17:00:06 +0000
commit4aec8d62fd6f16330ccc9a8aa56e35752223e046 (patch)
treecace9105dfeaa888646e915f596bc7593c4e179b
parentc8cab04139f93b35525ce4f8ffd00069ac473a26 (diff)
fix lexer regex -ugly hack to fix pcre strictness with rangesHEADmaster
an upgrade to php7.3/libpcre and ... this breaks. this is an ugly hack, but it gets wiki content back.
-rw-r--r--public_html/inc/parser/lexer.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/public_html/inc/parser/lexer.php b/public_html/inc/parser/lexer.php
index b46a5f50..c8981d48 100644
--- a/public_html/inc/parser/lexer.php
+++ b/public_html/inc/parser/lexer.php
@@ -160,6 +160,8 @@ class Doku_LexerParallelRegex {
160 $cnt = count($this->_patterns); 160 $cnt = count($this->_patterns);
161 for ($i = 0; $i < $cnt; $i++) { 161 for ($i = 0; $i < $cnt; $i++) {
162 162
163 if ($this->_patterns[$i] == '\\\\\\\\\\w+?(?:\\\\[\\w-$]+)+')
164 $this->_patterns[$i] = '\\\\\\\\\\w+?(?:\\\\[\\$-w]+)+';
163 /* 165 /*
164 * decompose the input pattern into "(", "(?", ")", 166 * decompose the input pattern into "(", "(?", ")",
165 * "[...]", "[]..]", "[^]..]", "[...[:...:]..]", "\x"... 167 * "[...]", "[]..]", "[^]..]", "[...[:...:]..]", "\x"...