Added support for RFC1522 (MIME coding of headers).
[squirrelmail.git] / src / read_body.php
index 59c4e4c87f3751e0b6fce8ea6f24c6e0773014a4..4701fe6993ee500771983f962f1d9d0b535fead5 100644 (file)
@@ -82,8 +82,8 @@
    }
 
    /** make sure everything will display in HTML format **/
-   $from_name = htmlspecialchars($message["HEADER"]["FROM"]);
-   $subject = htmlspecialchars(stripslashes($message["HEADER"]["SUBJECT"]));
+   $from_name = htmlspecialchars(rfc1522Decode($message["HEADER"]["FROM"]));
+   $subject = htmlspecialchars(rfc1522Decode(stripslashes($message["HEADER"]["SUBJECT"])));
 
    echo "<BR>";
    echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=98% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";