projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7bb3c
)
Check if the module is registered, else redirect to index.php
author
Roland Häder
<roland@mxchange.org>
Wed, 24 Oct 2012 22:28:50 +0000
(22:28 +0000)
committer
Roland Häder
<roland@mxchange.org>
Wed, 24 Oct 2012 22:28:50 +0000
(22:28 +0000)
inc/filters.php
patch
|
blob
|
history
diff --git
a/inc/filters.php
b/inc/filters.php
index 39d170f9d0755db87fcca4d353bee7e221149994..91852a46c6b7eadf8ed599c70f34aca46bd36595 100644
(file)
--- 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