openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit a86b477bab2bad3d5d3863657efa148ca3b096ab
parent 8a0bdc6b585855d5793456f36c2070102e4599d6
Author: Jan Dankert <develop@jandankert.de>
Date:   Wed, 18 Nov 2020 20:02:35 +0100

Fix: Only follow parent classes up to the "Action" Baseclass.

Diffstat:
Mmodules/cms/Dispatcher.class.php | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/cms/Dispatcher.class.php b/modules/cms/Dispatcher.class.php @@ -312,6 +312,10 @@ class Dispatcher throw new BadMethodCallException($baseActionClassName->get().' does not exist.'); $action = strtolower( $baseActionClassName->dropNamespace()->dropSuffix('Action')->get() ); + + if ( ! $action ) { + throw new BadMethodCallException( 'Action not found' ); + } }