Skip to content

Commit bce9c29

Browse files
committed
MC-22750: Update filtered methods to prevent template errors
1 parent 9019755 commit bce9c29

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/internal/Magento/Framework/Filter/Template.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class Template implements \Zend_Filter_Interface
8080
'vardirective',
8181
'delete',
8282
'getdatausingmethod',
83+
'gettemplatefilter',
8384
'__destruct',
8485
'__call',
8586
'__callstatic',

lib/internal/Magento/Framework/Filter/Test/Unit/TemplateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ public function disallowedMethods()
446446
['getTemplateProcessor'],
447447
['varDirective'],
448448
['delete'],
449-
['getDataUsingMethod']
449+
['getDataUsingMethod'],
450+
['getTemplateFilter']
450451
];
451452
}
452453
}

0 commit comments

Comments
 (0)