X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fsecurity_functions.php;h=ccacc15fabb68e3f82649dbf6c1897b1588da7b2;hb=bb3448dff42d948cc9752f81047ada54d69e80bd;hp=193ddb9fb4cd5c12083a718de2a14742a6496443;hpb=4e5020660b07f30b7bf3ccc0a2ca664a19a21c0d;p=mailer.git diff --git a/inc/libs/security_functions.php b/inc/libs/security_functions.php index 193ddb9fb4..ccacc15fab 100644 --- a/inc/libs/security_functions.php +++ b/inc/libs/security_functions.php @@ -45,6 +45,9 @@ if (strpos($_SERVER['PHP_SELF'], basename(__FILE__)) !== false) { die(); } // END - if +// Include ctracker, recommended place! +//require_once('ctracker.php'); + /** * Function to secure input strings * @@ -132,7 +135,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 @@ -151,17 +154,12 @@ if (!isset($_POST)) { $_POST = $GLOBALS['_POST']; } // END - if -// Include IP-Filter here -//include("/usr/share/php/ipfilter.php"); - // Generate arrays which holds the relevante chars to replace $GLOBALS['security_chars'] = array( // The chars we are looking for... - 'from' => array('{', '}', '/', '.', "'", '$', '(', ')', '{--', '--}', '{?', '?}', '%', ';', '[', ']', ':', '--'), + 'from' => array('/', '.', "'", '$', '(', ')', '{--', '--}', '{?', '?}', '%', ';', '[', ']', ':', '--'), // ... and we will replace to. 'to' => array( - '{OPEN_ANCHOR2}', - '{CLOSE_ANCHOR2}', '{SLASH}', '{DOT}', '{QUOT}',