Explorar o código

Changed htmpsecialchars(decodeHeader(...)) to
decodeHeader(htmlspecialchars(...)). This is necessary because
decodeHeader decodes things into HTML-entities.

gustavf %!s(int64=25) %!d(string=hai) anos
pai
achega
21a3a4b322
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/read_body.php

+ 2 - 2
src/read_body.php

@@ -88,8 +88,8 @@
    }
 
    /** make sure everything will display in HTML format **/
-   $from_name = htmlspecialchars(decodeHeader($message["HEADER"]["FROM"]));
-   $subject = htmlspecialchars(decodeHeader(stripslashes($message["HEADER"]["SUBJECT"])));
+   $from_name = decodeHeader(htmlspecialchars($message["HEADER"]["FROM"]));
+   $subject = decodeHeader(htmlspecialchars(stripslashes($message["HEADER"]["SUBJECT"])));
 
    echo "<BR>";
    echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=98% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";