|
| 1 | +diff -Nuar a/vendor/magento/module-email/Model/Template/Filter.php b/vendor/magento/module-email/Model/Template/Filter.php |
| 2 | +index 1a7c3683820a..586cb485ee1f 100644 |
| 3 | +--- a/vendor/magento/module-email/Model/Template/Filter.php |
| 4 | ++++ b/vendor/magento/module-email/Model/Template/Filter.php |
| 5 | +@@ -618,6 +618,12 @@ public function transDirective($construction) |
| 6 | + } |
| 7 | + |
| 8 | + $text = __($text, $params)->render(); |
| 9 | ++ |
| 10 | ++ $pattern = '/{{.*?}}/'; |
| 11 | ++ do { |
| 12 | ++ $text = preg_replace($pattern, '', (string)$text); |
| 13 | ++ } while (preg_match($pattern, $text)); |
| 14 | ++ |
| 15 | + return $this->applyModifiers($text, $modifiers); |
| 16 | + } |
| 17 | + |
| 18 | +diff -Nuar a/vendor/magento/framework/Filter/DirectiveProcessor/VarDirective.php b/vendor/magento/framework/Filter/DirectiveProcessor/VarDirective.php |
| 19 | +index f2fe398c3848..78034d70ba51 100644 |
| 20 | +--- a/vendor/magento/framework/Filter/DirectiveProcessor/VarDirective.php |
| 21 | ++++ b/vendor/magento/framework/Filter/DirectiveProcessor/VarDirective.php |
| 22 | +@@ -55,6 +55,11 @@ public function process(array $construction, Template $filter, array $templateVa |
| 23 | + $result = $this->filterApplier->applyFromRawParam($construction['filters'], $result); |
| 24 | + } |
| 25 | + |
| 26 | ++ $pattern = '/{{.*?}}/'; |
| 27 | ++ do { |
| 28 | ++ $result = preg_replace($pattern, '', (string)$result); |
| 29 | ++ } while (preg_match($pattern, $result)); |
| 30 | ++ |
| 31 | + return $result; |
| 32 | + } |
| 33 | + |
0 commit comments