issue 127: Fixed a bug that 'key=0' is removed in URL

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9616 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-10-12 09:58:08 +00:00
parent fec2185570
commit 4ed6f7327b

View file

@ -174,7 +174,7 @@ class Context {
if($_SERVER['REQUEST_METHOD'] == 'GET') {
if($this->get_vars) {
foreach($this->get_vars as $key=>$val) {
if(!$val) continue;
if(!strlen($val)) continue;
if(is_array($val)&&count($val)) {
foreach($val as $k => $v) {
$url .= ($url?'&':'').$key.'['.$k.']='.urlencode($v);