]> git.mxchange.org Git - mailer.git/commitdiff
Check if the module is registered, else redirect to index.php
authorRoland Häder <roland@mxchange.org>
Wed, 24 Oct 2012 22:28:50 +0000 (22:28 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 24 Oct 2012 22:28:50 +0000 (22:28 +0000)
inc/filters.php

index 39d170f9d0755db87fcca4d353bee7e221149994..91852a46c6b7eadf8ed599c70f34aca46bd36595 100644 (file)
@@ -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