X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fmessage_details%2Fmessage_details_bottom.php;h=ad475f5e80bd544c1be483eded2cd4214884366c;hb=79ba18dc89b1b096ecdf0b77169d57e0caf661db;hp=955ea6d174c9862963774262c877d1aa10d433c3;hpb=ae5dddc065f9501f267c4edaf68a066835da915f;p=squirrelmail.git diff --git a/plugins/message_details/message_details_bottom.php b/plugins/message_details/message_details_bottom.php index 955ea6d1..ad475f5e 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-2011 The SquirrelMail Project Team + * @copyright 2002-2013 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -130,7 +130,7 @@ function get_message_details($mailbox, $passed_id, $passed_ent_id=0, $stripHTML= $messageheaderstart=false; $boundaries = array(); $entities = array(); - session_unregister("entities"); + sqsession_unregister("entities"); $pre = ''; $end = ''; $entStr = ''; @@ -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"; }