|
@@ -526,7 +526,7 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) {
|
|
'<A HREF="'.$defaultlink.'">'.decodeHeader($display_filename).'</A> </TD>' .
|
|
'<A HREF="'.$defaultlink.'">'.decodeHeader($display_filename).'</A> </TD>' .
|
|
'<TD><SMALL><b>' . show_readable_size($header->size) .
|
|
'<TD><SMALL><b>' . show_readable_size($header->size) .
|
|
'</b> </small></TD>' .
|
|
'</b> </small></TD>' .
|
|
- "<TD><SMALL>[ $type0/$type1 ] </SMALL></TD>" .
|
|
|
|
|
|
+ '<TD><SMALL>[ '.htmlspecialchars($type0).'/'.htmlspecialchars($type1).' ] </SMALL></TD>' .
|
|
'<TD><SMALL>';
|
|
'<TD><SMALL>';
|
|
$attachments .= '<b>' . $description . '</b>';
|
|
$attachments .= '<b>' . $description . '</b>';
|
|
$attachments .= '</SMALL></TD><TD><SMALL> ';
|
|
$attachments .= '</SMALL></TD><TD><SMALL> ';
|
|
@@ -558,7 +558,7 @@ function sqimap_base64_decode(&$string) {
|
|
// remove the noise in order to check if the 4 bytes pairs are complete
|
|
// remove the noise in order to check if the 4 bytes pairs are complete
|
|
$string = str_replace(array("\r\n","\n", "\r", " "),array('','','',''),$string);
|
|
$string = str_replace(array("\r\n","\n", "\r", " "),array('','','',''),$string);
|
|
|
|
|
|
- $sStringRem = '';
|
|
|
|
|
|
+ $sStringRem = '';
|
|
$iMod = strlen($string) % 4;
|
|
$iMod = strlen($string) % 4;
|
|
if ($iMod) {
|
|
if ($iMod) {
|
|
$sStringRem = substr($string,-$iMod);
|
|
$sStringRem = substr($string,-$iMod);
|