This commit is contained in:
parent
28f801b5d0
commit
1c5bb3a911
|
|
@ -39,6 +39,8 @@ so installation via ZIP-archive download is not an option anymore. To install PH
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- `Undefined property` error while reading MS-DOC documents. - @jaberu #610
|
- `Undefined property` error while reading MS-DOC documents. - @jaberu #610
|
||||||
|
- Corrupted OOXML template issue in case when its macro is broken immediately after `$` sign.
|
||||||
|
That case wasn't taken into account in implementation of `TemplateProcessor::fixBrokenMacros()`. - @RomanSyroeshko @d-damien #548
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,7 @@ class TemplateProcessor
|
||||||
$fixedDocumentPart = $documentPart;
|
$fixedDocumentPart = $documentPart;
|
||||||
|
|
||||||
$fixedDocumentPart = preg_replace_callback(
|
$fixedDocumentPart = preg_replace_callback(
|
||||||
'|\$\{([^\}]+)\}|U',
|
'|\$[^{]*\{[^}]*\}|U',
|
||||||
function ($match) {
|
function ($match) {
|
||||||
return strip_tags($match[0]);
|
return strip_tags($match[0]);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue