From a7321e7578b54d8bb1080f437ebc223ad5d325cc Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 08 Feb 2012 06:59:11 -0500
Subject: [PATCH] - Fix URL building - skip null parameters

---
 program/include/rcmail.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 1c34759..3d5915e 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1507,7 +1507,7 @@
     $url = './';
     $delm = '?';
     foreach (array_reverse($p) as $key => $val) {
-      if ($val !== '') {
+      if ($val !== '' && $val !== null) {
         $par = $key[0] == '_' ? $key : '_'.$key;
         $url .= $delm.urlencode($par).'='.urlencode($val);
         $delm = '&';

--
Gitblit v1.9.1