diff --git a/common.php b/common.php index 2c4e741a..7e13da7a 100644 --- a/common.php +++ b/common.php @@ -31,12 +31,6 @@ if (!defined('POSTFIXADMIN')) { # already defined if called from setup.php } $incpath = dirname(__FILE__); -(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1'); -(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1'); - -if (ini_get('register_globals') == 'on') { - die("Please turn off register_globals; edit your php.ini"); -} /** * @param string $class diff --git a/public/sendmail.php b/public/sendmail.php index 753653d5..d070bc20 100644 --- a/public/sendmail.php +++ b/public/sendmail.php @@ -47,9 +47,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { $fSubject = safepost('fSubject'); $tBody = $_POST['fBody']; - if (get_magic_quotes_gpc()) { - $tBody = stripslashes($tBody); # TODO: check for get_magic_quotes_gpc inside safepost/safeget - } $error = 0; $email_check = check_email($fTo); diff --git a/public/setup.php b/public/setup.php index b1833982..5b235262 100644 --- a/public/setup.php +++ b/public/setup.php @@ -37,7 +37,6 @@ require(dirname(__FILE__) . '/../templates/header.php'); // $f_phpversion = function_exists("phpversion"); $f_apache_get_version = function_exists("apache_get_version"); - $f_get_magic_quotes_gpc = function_exists("get_magic_quotes_gpc"); $f_mysql_connect = function_exists("mysql_connect"); $f_mysqli_connect = function_exists("mysqli_connect"); $f_pg_connect = function_exists("pg_connect"); @@ -95,18 +94,6 @@ require(dirname(__FILE__) . '/../templates/header.php'); print "

Checking environment:\n"; print "