X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Floader.php;h=ab8533a79b1382f876e8bcade550e6bd6a1a04df;hp=368b613789f948c1eb449b9f51378bd63c1184a3;hb=6781adf1290f20497145cf6736591a19a3ee6d89;hpb=d997f1621c6e6e0427166bd96690e0825387dadd diff --git a/inc/modules/loader.php b/inc/modules/loader.php index 368b613789..ab8533a79b 100644 --- a/inc/modules/loader.php +++ b/inc/modules/loader.php @@ -32,14 +32,14 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } if (!empty($_GET['url'])) { // Decode URL - $url = COMPILE_CODE(@gzuncompress(base64_decode(str_replace(" ", "+", urldecode($_GET['url']))))); + $url = gzuncompress(base64_decode(str_replace(" ", "+", COMPILE_CODE(urldecode($_GET['url']))))); // Validate the URL if (VALIDATE_URL($url)) {