alecpl
2012-02-08 a7321e7578b54d8bb1080f437ebc223ad5d325cc
- Fix URL building - skip null parameters


1 files modified
2 ■■■ changed files
program/include/rcmail.php 2 ●●● patch | view | raw | blame | history
program/include/rcmail.php
@@ -1507,7 +1507,7 @@
    $url = './';
    $delm = '?';
    foreach (array_reverse($p) as $key => $val) {
      if ($val !== '') {
      if ($val !== '' && $val !== null) {
        $par = $key[0] == '_' ? $key : '_'.$key;
        $url .= $delm.urlencode($par).'='.urlencode($val);
        $delm = '&';