Reverted changes to trim_message tool

htmlspecialchars_decode() gets applied in function get_sub_taged_string() now
This commit is contained in:
Marc Alexander
2012-01-02 12:42:12 +01:00
parent 5339a8854d
commit 92e1a4ca8c
2 changed files with 3 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ class phpbb_trim_message
*/ */
public function __construct($message, $bbcode_uid, $length, $append_str = ' [...]', $tolerance = 25) public function __construct($message, $bbcode_uid, $length, $append_str = ' [...]', $tolerance = 25)
{ {
$this->message = htmlspecialchars_decode($message); $this->message = $message;
$this->bbcode_uid = $bbcode_uid; $this->bbcode_uid = $bbcode_uid;
$this->append_str = $append_str; $this->append_str = $append_str;
$this->length = (int) $length; $this->length = (int) $length;

View File

@@ -401,6 +401,8 @@ function get_sub_taged_string($message, $bbcode_uid, $length)
{ {
global $phpbb_root_path, $phpEx; global $phpbb_root_path, $phpEx;
$message = htmlspecialchars_decode($message);
if(!class_exists('phpbb_trim_message')) if(!class_exists('phpbb_trim_message'))
{ {
include($phpbb_root_path . 'includes/trim_message/trim_message.' . $phpEx); include($phpbb_root_path . 'includes/trim_message/trim_message.' . $phpEx);