session_(un)register are deprecated as of 5.3.1
[mailer.git] / inc / libs / security_functions.php
index da415b9..7309965 100644 (file)
@@ -41,7 +41,7 @@
 if (defined('__SECURITY')) return;
 
 // Some security stuff...
 if (defined('__SECURITY')) return;
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (strpos($_SERVER['PHP_SELF'], basename(__FILE__)) !== false) {
        die();
 } // END - if
 
        die();
 } // END - if