X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fdownload.php;h=6ba0939e9582b890ec5d59247809f3e041683353;hb=1c52ba77ca7d72fd34feeb6b338d3e60b6083f07;hp=5cf6fb839977022d1536aace664966848ff5a508;hpb=d4e84069d1d9af8760b8e858672d3ea3d4eac8b0;p=squirrelmail.git diff --git a/src/download.php b/src/download.php index 5cf6fb83..6ba0939e 100644 --- a/src/download.php +++ b/src/download.php @@ -1,22 +1,39 @@
"; + echo "
"; echo "
"; echo _("Viewing a text attachment") . " - "; if ($where && $what) { @@ -44,12 +61,16 @@ echo "
"; echo "
"; - echo "
"; + echo "
"; echo "
"; - if ($type1 != "html") + if ($type1 == 'html') { + $body = MagicHTML( $body, $id ); + } else { translateText($body, $wrap_at, $charset); + } + flush(); echo $body; echo "
"; @@ -109,7 +130,6 @@ if (isset($absolute_dl) && $absolute_dl == "true") { switch($type0) { case "text": - set_up_language(getPref($data_dir, $username, "language")); DumpHeaders($type0, $type1, $filename, 1); $body = mime_fetch_body($imapConnection, $passed_id, $passed_ent_id); $body = decodeBody($body, $header->encoding);