OSDN Git Service

Update project date from '2002 - 2009' to '2002 - 2010'.
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / ENCAPSULATE.php
index 78b609b..7a3b7f9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  * 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
@@ -14,8 +14,9 @@
  * Part of the code for the Nucleus admin area
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2006 The Nucleus Group
- * @version $Id: ENCAPSULATE.php,v 1.1 2006-07-12 07:13:31 kimitake Exp $
+ * @copyright Copyright (C) 2002-2010 The Nucleus Group
+ * @version $Id$
+ * @version $NucleusJP: ENCAPSULATE.php,v 1.4.2.1 2007/08/08 05:32:54 kimitake Exp $
  */
 
 class ENCAPSULATE {
@@ -27,7 +28,7 @@ class ENCAPSULATE {
          *
          * Passes on the amount of results found (for further encapsulation)
          */
-       function doEncapsulate($call, $params, $errorMessage = 'No entries') {
+       function doEncapsulate($call, $params, $errorMessage = _ENCAPSULATE_ENCAPSULATE_NOENTRY) {
                // start output buffering
                ob_start();
 
@@ -94,7 +95,7 @@ class NAVLIST extends ENCAPSULATE {
                $minamount = $this->minamount;
                $maxamount = $this->maxamount;
                $blogid = $this->blogid;
-               $search = $this->search;
+               $search = htmlspecialchars($this->search);
                $itemid = $this->itemid;
 
                $prev = $start - $amount;