Direct registration added, typo fixed, admin session on missing/failed login fixed...
[mailer.git] / modules.php
index 9dcd410fea12a196fa88de4278d27a7f072f9174..3787101d996b47b7f8642cc51900be9dfb0efe20 100644 (file)
@@ -110,7 +110,7 @@ if ((!empty($_CONFIG['maintenance'])) && ($_CONFIG['maintenance'] == "Y") && (!I
        case "mem_only":
        case "done":
                // Construct module name
-               define('__MODULE', sprintf("%sinc/modules/%s.php", PATH, $GLOBALS['module']));
+               define('__MODULE', sprintf("%sinc/modules/%s.php", PATH, SQL_ESCAPE($GLOBALS['module'])));
 
                // Does the module exists on local file system?
                if ((FILE_READABLE(__MODULE)) && (sizeof($FATAL) == 0)) {