File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ so installation via ZIP-archive download is not an option anymore. To install PH
39
39
40
40
### Fixed
41
41
- ` Undefined property ` error while reading MS-DOC documents. - @jaberu #610
42
+ - Corrupted OOXML template issue in case when its macro is broken immediately after ` $ ` sign.
43
+ That case wasn't taken into account in implementation of ` TemplateProcessor::fixBrokenMacros() ` . - @RomanSyroeshko @d-damien #548
42
44
43
45
44
46
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ protected function fixBrokenMacros($documentPart)
385
385
$ fixedDocumentPart = $ documentPart ;
386
386
387
387
$ fixedDocumentPart = preg_replace_callback (
388
- '|\$\{([^\}]+) \}|U ' ,
388
+ '|\$[^{]*\{[^}]* \}|U ' ,
389
389
function ($ match ) {
390
390
return strip_tags ($ match [0 ]);
391
391
},
You can’t perform that action at this time.
0 commit comments