OSDN Git Service

replaced postVar to intPostVar to fix security issue
authorkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Fri, 27 Apr 2007 19:07:04 +0000 (19:07 +0000)
committerkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Fri, 27 Apr 2007 19:07:04 +0000 (19:07 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@289 1ca29b6e-896d-4ea0-84a5-967f57386b96

euc/nucleus/libs/ADMIN.php
utf8/nucleus/libs/ADMIN.php

index e6be5f3..89b3c7c 100755 (executable)
@@ -14,8 +14,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: ADMIN.php,v 1.10 2007-04-04 07:52:08 kimitake Exp $
- * @version $NucleusJP: ADMIN.php,v 1.20 2007/03/22 03:30:14 kmorimatsu Exp $
+ * @version $Id: ADMIN.php,v 1.11 2007-04-27 19:07:04 kimitake Exp $
+ * @version $NucleusJP: ADMIN.php,v 1.10 2007/04/04 07:52:08 kimitake Exp $
  */
 
 if ( !function_exists('requestVar') ) exit;
@@ -840,13 +840,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -892,13 +892,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -933,13 +933,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -986,13 +986,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
index 3fcd545..7fd8969 100755 (executable)
@@ -14,8 +14,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: ADMIN.php,v 1.20 2007-03-22 03:30:14 kmorimatsu Exp $
- * @version $NucleusJP: ADMIN.php,v 1.19 2007/03/20 19:31:29 kmorimatsu Exp $
+ * @version $Id: ADMIN.php,v 1.21 2007-04-27 19:05:53 kimitake Exp $
+ * @version $NucleusJP: ADMIN.php,v 1.20 2007/03/22 03:30:14 kmorimatsu Exp $
  */
 
 if ( !function_exists('requestVar') ) exit;
@@ -840,13 +840,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -892,13 +892,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -933,13 +933,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -986,13 +986,13 @@ class ADMIN {
 
                // start index
                if (postVar('start'))
-                       $start = postVar('start');
+                       $start = intPostVar('start');
                else
                        $start = 0;
 
                // amount of items to show
                if (postVar('amount'))
-                       $amount = postVar('amount');
+                       $amount = intPostVar('amount');
                else
                        $amount = 10;
 
@@ -6222,4 +6222,4 @@ selector();
 
 } // class ADMIN
 
-?>
\ No newline at end of file
+?>