diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-06-29 16:57:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-06-29 16:57:26 +0000 |
| commit | d336e0d764b2eede3e6692ff26fdf32f3a5ca183 (patch) | |
| tree | 31fe0919827ad7b6d8e307bb621cb31bf43995ac /roundcubemail/program | |
| parent | 5999935e664cce38fd2144f0d70f95724add40f0 (diff) | |
- Fix url() so zero-values are not skipped (#1487979)
git-svn-id: https://svn.roundcube.net/trunk@4891 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 5 |
1 files changed, 2 insertions, 3 deletions
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 = '&'; |
