From: Tim Düsterhus Date: Sun, 5 Jan 2014 14:08:46 +0000 (+0100) Subject: Fix special characters in board title, board description and thread title (vB) X-Git-Tag: 2.0.2~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e01f3a23d9f24e3c7a01b4103937251a77cffd1;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix special characters in board title, board description and thread title (vB) --- diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index ca45319..e450c7b 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -751,8 +751,8 @@ class VB3or4xExporter extends AbstractExporter { 'parentID' => ($board['parentid'] != -1 ? $board['parentid'] : null), 'position' => $board['displayorder'], 'boardType' => ($board['link'] ? Board::TYPE_LINK : ($board['options'] & self::FORUMOPTIONS_CANCONTAINTHREADS ? Board::TYPE_BOARD : Board::TYPE_CATEGORY)), - 'title' => $board['title_clean'], - 'description' => $board['description_clean'], + 'title' => str_replace('&', '&', $board['title_clean']), + 'description' => str_replace('&', '&', $board['description_clean']), 'descriptionUseHtml' => 0, 'externalURL' => $board['link'], 'countUserPosts' => $board['options'] & self::FORUMOPTIONS_COUNTPOSTS ? 1 : 0, @@ -802,7 +802,7 @@ class VB3or4xExporter extends AbstractExporter { while ($row = $statement->fetchArray()) { $data = array( 'boardID' => $row['forumid'], - 'topic' => $row['title'], + 'topic' => StringUtil::decodeHTML($row['title']), 'time' => $row['dateline'], 'userID' => $row['postuserid'], 'username' => $row['postusername'],