X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Floader.php;h=4b6a8d1d85da7360517b51957ffea5327f1b206b;hb=d52156d35605388b7554c31d08bc29f0bb167079;hp=368b613789f948c1eb449b9f51378bd63c1184a3;hpb=d997f1621c6e6e0427166bd96690e0825387dadd;p=mailer.git diff --git a/inc/modules/loader.php b/inc/modules/loader.php index 368b613789..4b6a8d1d85 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 = decodeString(str_replace(" ", "+", compileUriCode(urldecode($_GET['url'])))); // Validate the URL if (VALIDATE_URL($url)) {