[xoops-cvslog 2761] CVS update: xoops2jp/html/include

Back to archive index

Minahito minah****@users*****
2006年 4月 11日 (火) 19:00:35 JST


Index: xoops2jp/html/include/functions.php
diff -u xoops2jp/html/include/functions.php:1.2.8.10 xoops2jp/html/include/functions.php:1.2.8.11
--- xoops2jp/html/include/functions.php:1.2.8.10	Fri Feb  3 23:34:08 2006
+++ xoops2jp/html/include/functions.php	Tue Apr 11 19:00:35 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: functions.php,v 1.2.8.10 2006/02/03 14:34:08 nobunobu Exp $
+// $Id: functions.php,v 1.2.8.11 2006/04/11 10:00:35 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -29,16 +29,21 @@
 
 function xoops_getrequest($name)
 {
-	if(isset($_REQUEST[$name]) && !is_array($_REQUEST[$name])) {
-	    if (get_magic_quotes_gpc()) {
-			return stripslashes($_REQUEST[$name]);
-		}
-		else {
-			return $_REQUEST[$name];
-		}
+	if (!get_magic_quotes_gpc()) {
+		return isset($_REQUEST[$name]) ? $_REQUEST[$name] : null;
 	}
 	
-	return null;
+	if(is_array($_REQUEST[$name])) {
+		return stripslashes($_REQUEST[$name]);
+	}
+	else {
+		$ret = array();
+		foreach ($_REQUEST[$name] as $key => $value) {
+			$ret[$key] = stripslashes($value);
+		}
+		
+		return $ret;
+	}
 }
 
 /**


xoops-cvslog メーリングリストの案内
Back to archive index