mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
getRequestArgument() 함수에서 배열로 된 쿠키값을 잘못 처리하는 문제 수정 (simulz님 감사~)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4312 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f1b149a52d
commit
3704a8c89d
1 changed files with 5 additions and 4 deletions
|
|
@ -478,10 +478,11 @@
|
||||||
|
|
||||||
foreach($_REQUEST as $key => $val) {
|
foreach($_REQUEST as $key => $val) {
|
||||||
if($key == "page" || $key == "cpage" || substr($key,-3)=="srl") $val = (int)$val;
|
if($key == "page" || $key == "cpage" || substr($key,-3)=="srl") $val = (int)$val;
|
||||||
if(is_array($val)) {
|
else if(is_array($val) && count($val) ) {
|
||||||
for($i=0;$i<count($val);$i++) {
|
foreach($val as $k => $v) {
|
||||||
if(get_magic_quotes_gpc()) $val[$i] = stripslashes($val[$i]);
|
if(get_magic_quotes_gpc()) $v = stripslashes($v);
|
||||||
$val[$i] = trim($val[$i]);
|
$v = trim($v);
|
||||||
|
$val[$k] = $v;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(get_magic_quotes_gpc()) $val = stripslashes($val);
|
if(get_magic_quotes_gpc()) $val = stripslashes($val);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue