Code rewritings, load base config improved and many minor fixes...
[mailer.git] / 0.2.1 / modules.php
index 3950e6df28c8025591220d2e30fbfdacc92bfaea..f700cb43f3a72ae968dd196a6761efda5c2659d0 100644 (file)
@@ -42,8 +42,8 @@ global $what, $action;
 $CSS = 0;\r
 $GLOBALS['what'] = ""; $GLOBALS['action'] = "";\r
 $GLOBALS['userid'] = 0;\r
-if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action']));\r
-if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what']));\r
+if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);\r
+if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);\r
 \r
 // Secure the module name (very important line!)\r
 $GLOBALS['module'] = htmlentities(strip_tags($_GET['module']), ENT_QUOTES);\r
@@ -126,7 +126,7 @@ if ((!empty($CONFIG['maintenance'])) && ($CONFIG['maintenance'] == "Y") && (!IS_
                break;\r
 \r
        case "404":\r
-               ADD_FATAL(LLANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2);\r
+               ADD_FATAL(LANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2);\r
                break;\r
 \r
        case "locked":\r