From d336e0d764b2eede3e6692ff26fdf32f3a5ca183 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 29 Jun 2011 16:57:26 +0000 Subject: - Fix url() so zero-values are not skipped (#1487979) git-svn-id: https://svn.roundcube.net/trunk@4891 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcmail.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program/include/rcmail.php') diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 4fc1262b3..e94e205e7 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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 = '&'; -- cgit v1.2.3