X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fsecurity_functions.php;h=fc61bdf3606196ff1896f4de63e57fa9bcfcc1dd;hb=5bb45d38458106175065810aaf993fd15af1d8e4;hp=c57d1e4c6eb35a638e4fdc997c61ad449847e051;hpb=8d3bf54aa1908e05a733960e1d1d0b8ad7cf4ae0;p=mailer.git diff --git a/inc/libs/security_functions.php b/inc/libs/security_functions.php index c57d1e4c6e..fc61bdf360 100644 --- a/inc/libs/security_functions.php +++ b/inc/libs/security_functions.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -45,6 +43,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 * @@ -151,17 +152,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}',