File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/core/Mage/Core/Helper Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ class Mage_Core_Helper_Security
2121 public function validateAgainstBlockMethodBlacklist (Mage_Core_Block_Abstract $ block , $ method , array $ args )
2222 {
2323 foreach ($ this ->invalidBlockActions as $ action ) {
24- if ($ block instanceof $ action ['block ' ] && strtolower ($ action ['method ' ]) === strtolower ($ method )) {
24+ $ calledMethod = strtolower ($ method );
25+ if (($ block instanceof $ action ['block ' ] && strtolower ($ action ['method ' ]) === $ calledMethod )
26+ || ($ block instanceof $ action ['block ' ]
27+ && strtolower ($ action ['block ' ] . ':: ' . $ action ['method ' ]) === $ calledMethod )) {
2528 Mage::throwException (
2629 sprintf ('Action with combination block %s and method %s is forbidden. ' , get_class ($ block ), $ method )
2730 );
You can’t perform that action at this time.
0 commit comments