]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/security_functions.php
Further rewrites due to deprecated functions in 5.3.1
[mailer.git] / inc / libs / security_functions.php
index 7309965b5b7b80cd4675122411d3b927afa36333..193ddb9fb4cd5c12083a718de2a14742a6496443 100644 (file)
@@ -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...