Issue 2280: Problem with strlen(array) on GET array params

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11075 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
florinutz 2012-08-23 15:08:29 +00:00
parent d4dd090842
commit 68fcf8c466

View file

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