setRequestArgument 에서 null string이 넘어오는 경우에 대한 처리

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4458 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2008-08-25 05:58:35 +00:00
parent 513bb224ba
commit 1965182ac8

View file

@ -485,6 +485,7 @@
if(!count($_REQUEST)) return;
foreach($_REQUEST as $key => $val) {
if($val !== 0 && !$val) continue;
if($key == "page" || $key == "cpage" || substr($key,-3)=="srl") $val = (int)$val;
else if(is_array($val) && count($val) ) {
foreach($val as $k => $v) {
@ -496,7 +497,6 @@
if(get_magic_quotes_gpc()) $val = stripslashes($val);
$val = trim($val);
}
if(!isset($val)) continue;
if($this->_getRequestMethod()=='GET'&&$_GET[$key]) $set_to_vars = true;
elseif($this->_getRequestMethod()=='POST'&&$_POST[$key]) $set_to_vars = true;