/**
* @license http://nucleuscms.org/license.txt GNU General Public License
* @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: globalfunctions.php,v 1.13.2.1 2008-01-29 07:05:06 kimitake Exp $
- * $NucleusJP: globalfunctions.php,v 1.23.2.5 2007/12/05 01:28:41 kmorimatsu Exp $
+ * @version $Id: globalfunctions.php,v 1.13.2.2 2008-02-04 06:11:41 kimitake Exp $
+ * $NucleusJP: globalfunctions.php,v 1.23.2.6 2008/02/04 06:10:33 kimitake Exp $
*/
// needed if we include globalfunctions from install.php
// Avoid notices
if (!isset($CONF['Self'])) {
- $CONF['Self'] = $_SERVER['PHP_SELF'];
+ $CONF['Self'] = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES);
}
/*
// if ($blogid && (intval($blogid) != $obj->iblog) ) {
// doError(_ERROR_NOSUCHITEM);
// }
- if ($blogid && (intval($blogid) != $obj->iblog)) {
+ if ($blogid && (intval($blogid) != $obj->iblog) ) {
if (!headers_sent()) {
$b =& $manager->getBlog($obj->iblog);
$CONF['ItemURL'] = $b->getURL();
/**
* @license http://nucleuscms.org/license.txt GNU General Public License
* @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: globalfunctions.php,v 1.23.2.5 2007-12-05 01:28:41 kmorimatsu Exp $
- * $NucleusJP: globalfunctions.php,v 1.23.2.4 2007/12/02 23:49:30 kmorimatsu Exp $
+ * @version $Id: globalfunctions.php,v 1.23.2.6 2008-02-04 06:10:33 kimitake Exp $
+ * $NucleusJP: globalfunctions.php,v 1.23.2.5 2007/12/05 01:28:41 kmorimatsu Exp $
*/
// needed if we include globalfunctions from install.php
// Avoid notices
if (!isset($CONF['Self'])) {
- $CONF['Self'] = $_SERVER['PHP_SELF'];
+ $CONF['Self'] = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES);
}
/*
// if ($blogid && (intval($blogid) != $obj->iblog) ) {
// doError(_ERROR_NOSUCHITEM);
// }
- if ($blogid && (intval($blogid) != $obj->iblog)) {
+ if ($blogid && (intval($blogid) != $obj->iblog) ) {
if (!headers_sent()) {
$b =& $manager->getBlog($obj->iblog);
$CONF['ItemURL'] = $b->getURL();