summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-08 11:59:11 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-08 11:59:11 +0000
commit174be8749b3ce69951293b72ea25087e5da4f7b6 (patch)
tree23167315abe02178895b2530854ee9e75f29c08d
parenta22e89e43fe5be15c29afb0b44ab4c090a4068bd (diff)
- Fix URL building - skip null parameters
git-svn-id: https://svn.roundcube.net/trunk@5863 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 1c34759e6..3d5915ea5 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/program/include/rcmail.php
@@ -1507,7 +1507,7 @@ class rcmail
$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 = '&';