Fix: Catastrophic Backtracking RegExp
This commit is contained in:
parent
d965a69601
commit
608730531f
|
|
@ -737,7 +737,7 @@ class TemplateProcessor
|
|||
$xmlBlock = null;
|
||||
$matches = array();
|
||||
preg_match(
|
||||
'/(.*((?s)<w:p\b(?:(?!<w:p\b).)*?\${' . $blockname . '}<\/w:.*?p>))(.*)((?s)<w:p\b(?:(?!<w:p\b).)*?\${\/' . $blockname . '}<\/w:.*?p>)/is',
|
||||
'/(.*((?s)<w:p\b(?:(?!<w:p\b).)*?\${' . $blockname . '}<\/w:.*?p>))(.*)((?s)<w:p\b(?:(?!<w:p\b).)[^$]*?\${\/' . $blockname . '}<\/w:.*?p>)/is',
|
||||
$this->tempDocumentMainPart,
|
||||
$matches
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue