Minahito
minah****@users*****
2006年 11月 16日 (木) 19:26:17 JST
Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.2.8.19.2.8 xoops2jp/html/include/functions.php:1.2.8.19.2.9 --- xoops2jp/html/include/functions.php:1.2.8.19.2.8 Sat Nov 11 18:34:07 2006 +++ xoops2jp/html/include/functions.php Thu Nov 16 19:26:17 2006 @@ -1,5 +1,5 @@ <?php -// $Id: functions.php,v 1.2.8.19.2.8 2006/11/11 09:34:07 minahito Exp $ +// $Id: functions.php,v 1.2.8.19.2.9 2006/11/16 10:26:17 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -32,25 +32,8 @@ */ function xoops_getrequest($name) { - if (!isset($_REQUEST[$name])) { - return null; - } - - if (!get_magic_quotes_gpc()) { - return isset($_REQUEST[$name]) ? $_REQUEST[$name] : 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; - } + $root =& XCube_Root::getSingleton(); + return $root->mContext->mRequest->getRequest($name); } /**