Code rewritings, load base config improved and many minor fixes...
[mailer.git] / 0.2.1 / index.php
index fb98fd1dcf06b7fff5a04234cf0acca50057e46e..05dcbe8428837836082f8d3237342d7a4d4fc6b2 100644 (file)
@@ -38,8 +38,8 @@ require_once("inc/libs/security_functions.php");
 // Init "action" and "what"\r
 global $what, $action;\r
 $GLOBALS['what'] = ""; $GLOBALS['action'] = "";\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
 // Set module\r
 $GLOBALS['module'] = "index";\r