Aleksander Machniak
2016-03-28 46f7b7096450939fe03c95aa81ce06ae4bfca89d
program/include/rcmail.php
@@ -840,6 +840,8 @@
            // this need to be full url to make redirects work
            $absolute = true;
        }
        else if ($secure && ($token = $this->get_request_token()))
            $url .= $delm . '_token=' . urlencode($token);
        if ($absolute || $full) {
            // add base path to this Roundcube installation
@@ -2243,12 +2245,12 @@
            $size = $this->show_bytes((int)$part->d_parameters['size']);
        }
        else {
          $size = $part->size;
          if ($part->encoding == 'base64') {
            $size = $size / 1.33;
          }
            $size = $part->size;
            if ($part->encoding == 'base64') {
                $size = $size / 1.33;
            }
          $size = '~' . $this->show_bytes($size);
            $size = '~' . $this->show_bytes($size);
        }
        return $size;