From 77406bb73192149d907bc7fc2b069318caa8f04f Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 29 Jun 2011 12:57:26 -0400
Subject: [PATCH] - Fix url() so zero-values are not skipped (#1487979)

---
 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 4fc1262..e94e205 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1373,9 +1373,8 @@
 
     $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 = '&';

--
Gitblit v1.9.1