SF.net SVN: postfixadmin: [242] trunk/common.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2007-11-26 07:38:54
|
Revision: 242 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=242&view=rev Author: GingerDog Date: 2007-11-25 23:38:56 -0800 (Sun, 25 Nov 2007) Log Message: ----------- common.php: ensure register_globals are not enabled Modified Paths: -------------- trunk/common.php Modified: trunk/common.php =================================================================== --- trunk/common.php 2007-11-25 17:35:29 UTC (rev 241) +++ trunk/common.php 2007-11-26 07:38:56 UTC (rev 242) @@ -20,6 +20,9 @@ (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... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |