[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    Re: [SM-CVS] SF.net SVN: squirrelmail:[14860] branches/SM-1_4-STABLE/squirrelmail
From:       Barbara Thompson <barbara () barbsbeads ! net>
Date:       2020-05-23 18:58:51
Message-ID: beaa3587f524e4d3d3aac79d5a879698 () barbsbeads ! net
[Download RAW message or body]

I don't know what this is.

---
(¯`v´¯)
 `*.¸.*´ Barbara
¸.•´¸.•*¨) ¸.•*¨)
(¸.•´ (¸.•´ .•´ ¸¸.•¨¯`•

On 2020-05-23 11:54, pdontthink--- via squirrelmail-cvs wrote:
> Revision: 14860
> http://sourceforge.net/p/squirrelmail/code/14860
> Author:   pdontthink
> Date:     2020-05-23 18:54:31 +0000 (Sat, 23 May 2020)
> Log Message:
> -----------
> Also fix printable page
> 
> Modified Paths:
> --------------
> branches/SM-1_4-STABLE/squirrelmail/functions/mime.php
> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php
> 
> Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php
> ===================================================================
> --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php	2020-05-23
> 18:46:03 UTC (rev 14859)
> +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php	2020-05-23
> 18:54:31 UTC (rev 14860)
> @@ -546,7 +546,7 @@
> $defaultlink = $hookresults[6];
> 
> // base64 encoded file sizes are misleading, so approximate 
> real size
> -        if (!empty($header->encoding) && $header->encoding == 
> 'base64')
> +        if (!empty($header->encoding) &&
> strtolower($header->encoding) == 'base64')
> $size = $header->size / 4 * 3;
> else
> $size = $header->size;
> 
> Modified: 
> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php
> ===================================================================
> ---
> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php	2020-05-23
> 18:46:03 UTC (rev 14859)
> +++
> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php	2020-05-23
> 18:54:31 UTC (rev 14860)
> @@ -274,11 +274,17 @@
> 
> $display_filename = $filename;
> 
> +        // base64 encoded file sizes are misleading, so approximate 
> real size
> +        if (!empty($header->encoding) &&
> strtolower($header->encoding) == 'base64')
> +            $size = $header->size / 4 * 3;
> +        else
> +            $size = $header->size;
> +
> // TODO: maybe make it nicer?
> $attachments .= '<table cellpadding="0" cellspacing="0"
> border="1"><tr><th
> colspan="2">'.decodeHeader($display_filename).'</th></tr>' .
> '<tr border="0">'.
> html_tag( 'td',_("Size:"), 'right') .
> -            html_tag( 'td',show_readable_size($header->size), 'left') 
> .
> +            html_tag( 'td',show_readable_size($size), 'left') .
> '</tr><tr>' .
> html_tag( 'td',_("Type:"), 'right') .
> html_tag(
> 'td',sm_encode_html_special_chars($type0).'/'.sm_encode_html_special_chars($type1),
> 'left') .
> 
> This was sent by the SourceForge.net collaborative development
> platform, the world's largest Open Source development site.
> 
> 
> 
> -----
> squirrelmail-cvs mailing list
> List address: squirrelmail-cvs@lists.sourceforge.net
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
> Repository: http://squirrelmail.org/svn


-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic