getRequestArgument() 함수에서 배열로 된 쿠키값을 잘못 처리하는 문제 수정 (simulz님 감사~)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4312 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-06-20 01:46:49 +00:00
parent f1b149a52d
commit 3704a8c89d

View file

@ -478,10 +478,11 @@
foreach($_REQUEST as $key => $val) {
if($key == "page" || $key == "cpage" || substr($key,-3)=="srl") $val = (int)$val;
if(is_array($val)) {
for($i=0;$i<count($val);$i++) {
if(get_magic_quotes_gpc()) $val[$i] = stripslashes($val[$i]);
$val[$i] = trim($val[$i]);
else if(is_array($val) && count($val) ) {
foreach($val as $k => $v) {
if(get_magic_quotes_gpc()) $v = stripslashes($v);
$v = trim($v);
$val[$k] = $v;
}
} else {
if(get_magic_quotes_gpc()) $val = stripslashes($val);