X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmessage_details%2Fmessage_details_bottom.php;h=52c6c9df5169d0b2ec809f7319123575c1128696;hp=9f60e6345fe67d63952a5ac766773f1e3692644a;hb=701e7beed3baca980039f978c6d536dd91cae775;hpb=ffa9cc0ed8a813c3009a2aa03cde7f883f4bed32 diff --git a/plugins/message_details/message_details_bottom.php b/plugins/message_details/message_details_bottom.php index 9f60e634..52c6c9df 100644 --- a/plugins/message_details/message_details_bottom.php +++ b/plugins/message_details/message_details_bottom.php @@ -7,7 +7,7 @@ * * @author Marc Groot Koerkamp * @copyright 2002 Marc Groot Koerkamp, The Netherlands - * @copyright 2002-2012 The SquirrelMail Project Team + * @copyright 2002-2014 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -260,7 +260,7 @@ function get_message_details($mailbox, $passed_id, $passed_ent_id=0, $stripHTML= $entities["$entStr"]['contenttype']=$reg[2].'/'.$reg[3]; } } else if (!$nameset && preg_match("/^.*(name=\s*)\"(.*)\".*/i",$line,$reg)) { - $name = htmlspecialchars($reg[2]); + $name = sm_encode_html_special_chars($reg[2]); $content[$content_indx]['name'] = decodeHeader($name); $nameset = true; if (isset($entities["$entStr"])) { @@ -285,7 +285,7 @@ function get_message_details($mailbox, $passed_id, $passed_ent_id=0, $stripHTML= if ($stripHTML) { $message_body .= $line . "\r\n"; } else { - $line = htmlspecialchars($line); + $line = sm_encode_html_special_chars($line); if ($msgd_8bit_in_hex) $line = msgd_convert_to_hex($line); $message_body .= "$pre"."$line"."$end"."\r\n"; }