From: lkehresman Date: Wed, 2 Aug 2000 12:51:17 +0000 (+0000) Subject: - fixed some more HTML bugs X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=a037624df01cf9f452f19b93565107926b69d66c - fixed some more HTML bugs - fixed bug that threw message index into infinite loop - changed compose.php to have ENCTYPE=multipart/form-data again git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@669 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index e864b7b7..357aecae 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -427,7 +427,7 @@ // this if statement checks for the entity to show as the // primary message. To add more of them, just put them in the // order that is their priority. - global $username, $key, $imapServerAddress, $imapPort; + global $startMessage, $username, $key, $imapServerAddress, $imapPort; $id = $message->header->id; $urlmailbox = urlencode($message->header->mailbox); @@ -449,6 +449,7 @@ /** Display the ATTACHMENTS: message if there's more than one part **/ if ($message->entities) { + $body .= ""; $body .= "
"; $body .= "ATTACHMENTS:"; $body .= "
"; @@ -456,6 +457,8 @@ $body .= formatAttachments ($message, $ent_num, $message->header->mailbox, $id); $body .= "
"; + } else { + $body .= ""; } return $body; } @@ -464,6 +467,7 @@ // to where to download these attachments function formatAttachments ($message, $ent_id, $mailbox, $id) { global $where, $what; + global $startMessage; if ($message) { if (!$message->entities) { $type0 = strtolower($message->header->type0); @@ -481,9 +485,9 @@ $ent = urlencode($message->header->entity_id); if ($where && $what) { // from a search - $body .= "   " . $display_filename . "  (TYPE: $type0/$type1)"; + $body .= "   " . $display_filename . "  (TYPE: $type0/$type1)"; } else { - $body .= "   " . $display_filename . "  (TYPE: $type0/$type1)"; + $body .= "   " . $display_filename . "  (TYPE: $type0/$type1)"; } if ($message->header->description) $body .= "  " . htmlspecialchars($message->header->description).""; diff --git a/functions/url_parser.php b/functions/url_parser.php index 05aca966..9d44543a 100644 --- a/functions/url_parser.php +++ b/functions/url_parser.php @@ -35,7 +35,7 @@ #Possible ways a URL could finish. $poss_ends=array(" ", "\n", "\r", "<", ">", ".\r", ".\n", ". ", " ", ")", "(", - """, "<", ">", ".<"); + """, "<", ">", ".<", "]", "[", "{", "}", "--"); $done=False; while (!$done) { #Look for when a URL starts diff --git a/src/compose.php b/src/compose.php index 1fc27a8d..3936710f 100644 --- a/src/compose.php +++ b/src/compose.php @@ -152,8 +152,8 @@ echo "// -->\n\n"; } - //echo "\n
\n"; - echo "\n\n"; + echo "\n\n"; + //echo "\n\n"; if ($reply_id) { echo "\n"; } diff --git a/src/download.php b/src/download.php index bb7adb36..7c92975b 100644 --- a/src/download.php +++ b/src/download.php @@ -26,9 +26,10 @@ function viewText($color, $body, $id, $entid, $mailbox, $type1, $wrap_at) { global $where, $what, $charset; + global $startMessage; displayPageHeader($color, "None"); - echo "
"; + echo "
"; echo "
"; echo _("Viewing a text attachment") . " - "; if ($where && $what) { @@ -37,12 +38,17 @@ } else { echo "". _("View message") . ""; } - echo "
"; - echo "
"; + $urlmailbox = urlencode($mailbox); - echo "
"; + echo "
"; echo _("Download this as a file"); - echo "


"; + echo "
"; + echo ""; + echo "
"; + + echo "\n"; - echo "
"; + echo "
"; + if ($type1 == "html") echo $body; else diff --git a/src/read_body.php b/src/read_body.php index 197523eb..740dc714 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -337,8 +337,6 @@ echo "$body"; - echo "
"; echo "\n"; echo " "; echo "
 
\n";