mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +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) {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue