git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4651 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2008-10-20 09:03:49 +00:00
parent 7de8b088f0
commit 303f87254a

View file

@ -150,7 +150,13 @@
if($this->get_vars) {
foreach($this->get_vars as $key => $val) {
if(!$val) continue;
$url .= ($url?'&':'').$key.'='.urlencode($val);
if(is_array($val)&&count($val)) {
foreach($val as $k => $v) {
$url .= ($url?'&':'').$key.'['.$k.']='.urlencode($v);
}
} else {
$url .= ($url?'&':'').$key.'='.urlencode($val);
}
}
Context::set('current_url',sprintf('%s?%s', $this->getRequestUri(), $url));
} else {
@ -719,7 +725,13 @@
// rewrite 모듈을 사용하지 않고 인자의 값이 2개 이상이거나 rewrite모듈을 위한 인자로 적당하지 않을 경우
foreach($get_vars as $key => $val) {
if(!isset($val)) continue;
$url .= ($url?'&':'').$key.'='.urlencode($val);
if(is_array($val) && count($val)) {
foreach($val as $k => $v) {
$url .= ($url?'&':'').$key.'['.$k.']='.urlencode($v);
}
} else {
$url .= ($url?'&':'').$key.'='.urlencode($val);
}
}
return $path.'?'.htmlspecialchars($url);