Added Pontus Ullgren's re-hash of Tyler's re-write of my code to de-fang
authorphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 12 Sep 2001 19:43:37 +0000 (19:43 +0000)
committerphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 12 Sep 2001 19:43:37 +0000 (19:43 +0000)
HTML only messages.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1498 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index f032ece..6195267 100644 (file)
       } else if ($encoding == "base64") {
          $body = base64_decode($body);
       }
-
-      // All other encodings are returned raw.
+     
+    switch($show_html_default) {
+        case '1': // Safe HTML
+             // Philippe's code
+            break;
+        case '2': // Any HTML
+            break;
+        default: // No HTML
+           $body = str_replace('<', '&lt;', $body);
+            break;
+       }
       return $body;
    }