Skip to content

Commit 8dd5439

Browse files
mark-netalicofballiano
authored andcommitted
Merge pull request from GHSA-5j2g-3ph4-rgvm
1 parent 035ed4e commit 8dd5439

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/code/core/Mage/Core/Block/Abstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ public function getChildGroup($groupName, $callback = null, $skipEmptyResults =
852852
$alias = $block->getBlockAlias();
853853
if (in_array($alias, $this->_childGroups[$groupName])) {
854854
if ($callback) {
855+
Mage::helper('core/security')->validateAgainstBlockMethodBlacklist($this, $callback, [$alias]);
855856
$row = $this->$callback($alias);
856857
if (!$skipEmptyResults || $row) {
857858
$result[$alias] = $row;

app/code/core/Mage/Core/Helper/Security.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class Mage_Core_Helper_Security
2828
{
2929
private $invalidBlockActions
3030
= [
31-
// explicitly not using class constant here Mage_Page_Block_Html_Topmenu_Renderer::class
32-
// if the class does not exists it breaks.
3331
['block' => Mage_Page_Block_Html_Topmenu_Renderer::class, 'method' => 'render'],
3432
['block' => Mage_Core_Block_Template::class, 'method' => 'fetchView'],
3533
];

0 commit comments

Comments
 (0)