]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/action-doubler.php
HTML->XHTML preparation (still *A LOT* to convert
[mailer.git] / inc / modules / admin / action-doubler.php
index 26c92b1837c9fe2a8f75c4cfa3a33f90f9c95f10..85af60e46015bc8917bea52062bf64d243e7e6d5 100644 (file)
@@ -41,12 +41,13 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR("admin", __FILE__);
 
 // Load the include file
-$INC = sprintf(."%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']);
+$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
 if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        include($INC);
 } else {
-       ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       // "what file" not found
+       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
 }
 
 //