X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fsecurity_functions.php;h=c57d1e4c6eb35a638e4fdc997c61ad449847e051;hb=34c9e454ba6ecfd0257d59f206dabbd0baaf731a;hp=7309965b5b7b80cd4675122411d3b927afa36333;hpb=68808513bae244881b38640d307d907535c676b9;p=mailer.git diff --git a/inc/libs/security_functions.php b/inc/libs/security_functions.php index 7309965b5b..c57d1e4c6e 100644 --- a/inc/libs/security_functions.php +++ b/inc/libs/security_functions.php @@ -89,7 +89,7 @@ function securePhpSelf () { $phpSelfFile = basename($_SERVER['PHP_SELF']); // Check for a .php inside the $phpSelfDirectory... - while (ereg('.php', $phpSelfDirectory)) { + while (strpos($phpSelfDirectory, '.php') !== false) { // Correct the dirname $phpSelfDirectory = substr($phpSelfDirectory, 0, (strpos($phpSelfDirectory, '.php') + 4)); // Rewrite filename... @@ -132,7 +132,7 @@ function detectPhpCaching () { } // Runtime/GPC quoting is off now... -set_magic_quotes_runtime(false); +ini_set('magic_quotes_runtime', false); ini_set('magic_quotes_gpc', false); // This may not work on some systems // Check if important arrays are found and define them if missing