alecpl
2011-06-29 77406bb73192149d907bc7fc2b069318caa8f04f
- Fix url() so zero-values are not skipped (#1487979)


1 files modified
5 ■■■■■ changed files
program/include/rcmail.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcmail.php
@@ -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 = '&';