From 51d8dffac8e1c6a897ff513669bcc87928e17e79 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sun, 9 Aug 2015 17:51:07 +0200 Subject: [PATCH] bug 932: added escaping with htmlspecialchars function and encoding UTF-8 for subject --- .../application/views/scripts/mail/full.phtml | 16 ++++++++-------- .../application/views/scripts/mail/index.phtml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/manager/application/views/scripts/mail/full.phtml b/manager/application/views/scripts/mail/full.phtml index 1bfed87..01d8ff2 100644 --- a/manager/application/views/scripts/mail/full.phtml +++ b/manager/application/views/scripts/mail/full.phtml @@ -23,14 +23,14 @@ else { headers as $header) { - print " \n"; - print " detailslink . "\">" . $header->fromaddress . ""; - print " " . $header->toaddress . ""; - print " " . $header->subject . ""; - print " " . $header->date . ""; - print " " . $header->Size . ""; - print " deletelink . "\">"; - print " \n"; + print " \n"; + print " detailslink . "\">" . $header->fromaddress . ""; + print " " . $header->toaddress . ""; + print " " . htmlspecialchars(quoted_printable_decode($header->subject), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . ""; + print " " . $header->date . ""; + print " " . $header->Size . ""; + print " deletelink . "\">"; + print " \n"; } } ?> diff --git a/manager/application/views/scripts/mail/index.phtml b/manager/application/views/scripts/mail/index.phtml index 427d0e9..3eecfdc 100644 --- a/manager/application/views/scripts/mail/index.phtml +++ b/manager/application/views/scripts/mail/index.phtml @@ -23,14 +23,14 @@ else { headers as $header) { - print " \n"; - print " detailslink . "\">" . $header->fromaddress . ""; - print " " . $header->toaddress . ""; - print " " . $header->subject . ""; - print " " . $header->date . ""; - print " " . $header->Size . ""; - print " deletelink . "\">"; - print " \n"; + print " \n"; + print " detailslink . "\">" . $header->fromaddress . ""; + print " " . $header->toaddress . ""; + print " " . htmlspecialchars(quoted_printable_decode($header->subject), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . ""; + print " " . $header->date . ""; + print " " . $header->Size . ""; + print " deletelink . "\">"; + print " \n"; } } ?>