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