summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-29 16:57:26 +0000
committeralecpl <alec@alec.pl>2011-06-29 16:57:26 +0000
commit77406bb73192149d907bc7fc2b069318caa8f04f (patch)
treea1dbe1debdde75f8fffb283cb20cf0b00269d050
parentf5803dfda141ce16966d74d1dca0b3e7b6f614d8 (diff)
- Fix url() so zero-values are not skipped (#1487979)
-rw-r--r--program/include/rcmail.php5
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 = '&';