mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-19 10:23:16 +09:00
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:
parent
d4dd090842
commit
68fcf8c466
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue