rebuild $_REQUEST manually to avoid cookie interference FS#1104

darcs-hash:20070513181524-7ad00-20cb0328fc1b2881120d825f74ec032a5171f782.gz
This commit is contained in:
Andreas Gohr 2007-05-13 20:15:24 +02:00
parent d21dc86652
commit a1637ffdf2
1 changed files with 3 additions and 1 deletions

View File

@ -97,13 +97,15 @@
if (!empty($_POST)) remove_magic_quotes($_POST);
if (!empty($_COOKIE)) remove_magic_quotes($_COOKIE);
if (!empty($_REQUEST)) remove_magic_quotes($_REQUEST);
# if (!empty($_SESSION)) remove_magic_quotes($_SESSION); #FIXME needed ?
@ini_set('magic_quotes_gpc', 0);
define('MAGIC_QUOTES_STRIPPED',1);
}
@set_magic_quotes_runtime(0);
@ini_set('magic_quotes_sybase',0);
// don't let cookies ever interfere with request vars
$_REQUEST = array_merge($_GET,$_POST);
// disable gzip if not available
if($conf['compression'] == 'bz' && !function_exists('bzopen')){
$conf['compression'] = 'gz';