Fix: Catastrophic Backtracking RegExp
This commit is contained in:
parent
d965a69601
commit
608730531f
|
|
@ -737,7 +737,7 @@ class TemplateProcessor
|
||||||
$xmlBlock = null;
|
$xmlBlock = null;
|
||||||
$matches = array();
|
$matches = array();
|
||||||
preg_match(
|
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,
|
$this->tempDocumentMainPart,
|
||||||
$matches
|
$matches
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue