[Svn] r4891 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Wed Jun 29 18:57:26 CEST 2011


Author: alec
Date: 2011-06-29 11:57:26 -0500 (Wed, 29 Jun 2011)
New Revision: 4891

Modified:
   trunk/roundcubemail/program/include/rcmail.php
Log:
- Fix url() so zero-values are not skipped (#1487979)


Modified: trunk/roundcubemail/program/include/rcmail.php
===================================================================
--- trunk/roundcubemail/program/include/rcmail.php	2011-06-29 16:52:40 UTC (rev 4890)
+++ trunk/roundcubemail/program/include/rcmail.php	2011-06-29 16:57:26 UTC (rev 4891)
@@ -1373,9 +1373,8 @@
 
     $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 = '&';

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list