diff options
author | alecpl <alec@alec.pl> | 2011-06-29 16:57:26 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-06-29 16:57:26 +0000 |
commit | 77406bb73192149d907bc7fc2b069318caa8f04f (patch) | |
tree | a1dbe1debdde75f8fffb283cb20cf0b00269d050 | |
parent | f5803dfda141ce16966d74d1dca0b3e7b6f614d8 (diff) |
- Fix url() so zero-values are not skipped (#1487979)
-rw-r--r-- | program/include/rcmail.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 4fc1262b3..e94e205e7 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1373,9 +1373,8 @@ class rcmail $url = './'; $delm = '?'; - foreach (array_reverse($p) as $key => $val) - { - if (!empty($val)) { + foreach (array_reverse($p) as $key => $val) { + if ($val !== '') { $par = $key[0] == '_' ? $key : '_'.$key; $url .= $delm.urlencode($par).'='.urlencode($val); $delm = '&'; |