Skip to content

Commit 5a4d952

Browse files
authored
AC-2391 (#48)
1 parent dfcc203 commit 5a4d952

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento-cloud-patches",
33
"description": "Provides critical fixes for Magento 2 Enterprise Edition",
44
"type": "magento2-component",
5-
"version": "1.0.13",
5+
"version": "1.0.14",
66
"license": "OSL-3.0",
77
"repositories": {
88
"repo.magento.com": {

patches.json

+3
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@
376376
"Raise rate limits": {
377377
"2.3.7-p1": "MC-43048__set_rate_limits__2.3.7-p1.patch",
378378
"2.4.3": "MC-43048__set_rate_limits__2.4.3.patch"
379+
},
380+
"Parser token fix": {
381+
">=2.3.3-p1 <=2.4.4": "MDVA-43395__parser_token_fix__2.4.3-p2.patch"
379382
}
380383
}
381384
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

Comments
 (0)