Outputs HTML through the MagicHTML parser
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 24 Oct 2001 09:18:32 +0000 (09:18 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 24 Oct 2001 09:18:32 +0000 (09:18 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1603 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/download.php

index 8103994..1d73a47 100644 (file)
       echo "<TABLE WIDTH=98% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
       echo "<TR><TD BGCOLOR=\"$color[4]\"><TT>";
 
-      if ($type1 != "html")
+      if ($type1 == 'html') {
+         $body = MagicHTML( $body, $id );
+      } else {
          translateText($body, $wrap_at, $charset);
+      }
       
+      flush();
       echo $body;
 
       echo "</TT></TD></TR></TABLE>";