From 6797912ca9c98b07db761ddfc96c715042ee9469 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 26 Nov 2007 07:38:56 +0000 Subject: [PATCH] common.php: ensure register_globals are not enabled git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@242 a1433add-5e2c-0410-b055-b7f2511e0802 --- common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.php b/common.php index 9a8f2231..3b7d91c3 100644 --- a/common.php +++ b/common.php @@ -20,6 +20,9 @@ $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')) { + die("Please turn off register_globals; edit your php.ini"); +} require_once("$incpath/variables.inc.php"); if(!is_file("$incpath/config.inc.php")) { // incorrectly setup...