openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 43ddce75d014b058af7459c039641571917afb92
parent 164cef0cf7526d336bdaae03903faaaeee9dfde7
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 10 Nov 2011 21:07:35 +0100

Falls Action- oder Methodename fehlen, dann HTTP-Fehler anzeigen

Diffstat:
dispatcher.php | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/dispatcher.php b/dispatcher.php @@ -162,8 +162,9 @@ if ( is_object( $db ) ) if ( !empty($REQ[REQ_PARAM_ACTION]) ) $action = $REQ[REQ_PARAM_ACTION]; -else - $action = 'login'; +else + Http::serverError("no action supplied"); + //$action = 'login'; Session::set('action',$action); @@ -171,11 +172,7 @@ if ( !empty( $REQ[REQ_PARAM_SUBACTION] ) ) $subaction = $REQ[REQ_PARAM_SUBACTION]; else { - $sl = Session::getSubaction(); - if ( is_array($sl) && isset($sl[$action]) ) - $subaction = $sl[$action]; - else - $subaction = ''; + Http::serverError("no method (subaction) supplied"); } require( OR_ACTIONCLASSES_DIR.'/Action.class.php' );