From 77406bb73192149d907bc7fc2b069318caa8f04f Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 29 Jun 2011 16:57:26 +0000 Subject: - Fix url() so zero-values are not skipped (#1487979) --- program/include/rcmail.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'program') diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 4fc1262b3..e94e205e7 100644 --- a/program/include/rcmail.php +++ b/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