From 793cc0019a42f896447589a7043dd680e28ec3b5 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Fri, 15 Feb 2002 06:02:05 +0000 Subject: [PATCH] > Subject: Yahoo Mail Failure. > From: "Chris Picciotto" > Date: Thu, February 14, 2002 5:20 pm git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2451 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 13 +++++++------ src/webmail.php | 12 ++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 61ee7357..bae0fd9a 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -632,7 +632,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at) { } else { translateText($body, $wrap_at, $body_message->header->charset); } - + $body .= "
". _("Download this as a file") ."

"; /** Display the ATTACHMENTS: message if there's more than one part **/ @@ -827,7 +827,7 @@ return ($string); */ function encodeHeader ($string) { global $default_charset; - + // Encode only if the string contains 8-bit characters or =? $j = strlen( $string ); $l = strstr($string, '=?'); // Must be encoded ? @@ -855,7 +855,7 @@ function encodeHeader ($string) { $ret .= $string{$i}; } } - + if ( $l ) { $string = "=?$default_charset?Q?$ret?="; } @@ -868,7 +868,7 @@ function encodeHeader ($string) { */ function MagicHTML( $body, $id ) { - global $message, $HTTP_SERVER_VARS, + global $message, $HTTP_SERVER_VARS, $attachment_common_show_images; $attachment_common_show_images = @@ -886,11 +886,12 @@ function MagicHTML( $body, $id ) { $pos = $i + 1; $tag = ''; while ($body{$pos} == ' ' || $body{$pos} == "\t" || - $body{$pos} == "\n") { + $body{$pos} == "\n" ) { $pos ++; } while (strlen($tag) < 4 && $body{$pos} != ' ' && - $body{$pos} != "\t" && $body{$pos} != "\n") { + $body{$pos} != "\t" && $body{$pos} != "\n" && + $pos < $j ) { $tag .= $body{$pos}; $pos ++; } diff --git a/src/webmail.php b/src/webmail.php index 596a4ccc..16e4b247 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -78,7 +78,7 @@ else { * we would like to use as little Javascript as possible. */ if (!isset($right_frame)) { - $right_frame = ""; + $right_frame = ''; } if ($right_frame == 'right_main.php') { @@ -96,14 +96,14 @@ if ($right_frame == 'right_main.php') { } if ($location_of_bar == 'right') { - echo ""; - echo ''; + echo "" . + ''; } else { - echo ''; - echo ""; + echo ''. + ""; } ?> - + \ No newline at end of file -- 2.25.1