From: Roland Häder Date: Wed, 24 Oct 2012 22:28:50 +0000 (+0000) Subject: Check if the module is registered, else redirect to index.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d70b3c3eddeaf35fd18e94211bd992cc9f87b06f;p=mailer.git Check if the module is registered, else redirect to index.php --- diff --git a/inc/filters.php b/inc/filters.php index 39d170f9d0..91852a46c6 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -708,6 +708,12 @@ function FILTER_DETERMINE_WHAT_ACTION () { if ((!isCssOutputMode()) && (!isRawOutputMode())) { // Fix module if (!isModuleSet()) { + // Is the module registered? + if (!isModuleRegistered(getRequestElement('module'))) { + // Is not a valid module + redirectToUrl('index.php'); + } // END - if + // Is the request element set? if (isGetRequestElementSet('module')) { // Set module from request