/*
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2006 The Nucleus Group
+ * Copyright (C) 2002-2010 The Nucleus Group
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*/
/**
* @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2006 The Nucleus Group
- * @version $Id: vars4.1.0.php,v 1.7 2006-07-12 07:11:47 kimitake Exp $
- * $NucleusJP: vars4.1.0.php,v 1.6 2005/08/13 07:33:02 kimitake Exp $
+ * @copyright Copyright (C) 2002-2010 The Nucleus Group
+ * @version $Id$
+ * @version $NucleusJP: vars4.1.0.php,v 1.10.2.2 2007/10/30 19:01:33 kmorimatsu Exp $
*/
+
+// Remove $_COOKIE keys in $_REQUEST
+// This is for maintaining the compatibility with PHP 4.0.6
+// and also for avoiding bugs of plugins due to cookie keys
+if (isset($_REQUEST) and isset($_COOKIE)) {
+ foreach($_COOKIE as $key=>$value) {
+ if (isset($_REQUEST[$key])) unset($_REQUEST[$key]);
+ }
+}
+
function getVar($name) {
if (!isset($_GET[$name])) {
return;
}
function stripslashes_array($data) {
- return is_array($data) ? array_map('stripslashes', $data) : stripslashes($data);
+ return is_array($data) ? array_map('stripslashes_array', $data) : stripslashes($data);
}
function undoSybaseQuotes_array($data) {