From b1c34419698829d5eb76991889b14cc3423600a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20Gro=C3=9Fberndt?= <stephan@grossberndt.de>
Date: Tue, 19 Apr 2016 17:19:46 +0200
Subject: [PATCH] [BUGFIX] Escaped content in RecordHistory InfoBox

This patch fixes the InfoBox in RecordHistory, which displayed
escaped HTML instead of colored spans.

Resolves: #75790
Releases: master
Change-Id: I3d69bb33b0a2cccd0e2f3b26b1f701168df5b2fb
Reviewed-on: https://review.typo3.org/47792
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
---
 .../Private/Partials/RecordHistory/History.html  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/History.html b/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/History.html
index ffcfd3c1a530..dc8f70f1417d 100644
--- a/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/History.html
+++ b/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/History.html
@@ -2,7 +2,7 @@
 
 <h2>{f:translate(key: 'LLL:EXT:lang/locallang_show_rechis.xlf:changes')}</h2>
 <div>
-	<f:be.infobox state="-1">{f:translate(key: 'LLL:EXT:lang/locallang_show_rechis.xlf:differenceMsg')}</f:be.infobox>
+	<f:be.infobox state="-1">{f:translate(key: 'LLL:EXT:lang/locallang_show_rechis.xlf:differenceMsg') -> f:format.raw()}</f:be.infobox>
 	<table class="table table-striped table-hover table-vertical-top" id="typo3-history">
 		<thead>
 		<tr>
@@ -18,9 +18,9 @@
 		<tbody>
 		<f:for each="{history}" as="historyRow" key="key">
 			<tr>
-				<td><span><span title="{f:translate(key: 'LLL:EXT:lang/locallang_show_rechis.xlf:sumUpChanges')}"><f:format.raw>
-					{historyRow.rollbackLink}
-				</f:format.raw></span></span></td>
+				<td><span><span title="{f:translate(key: 'LLL:EXT:lang/locallang_show_rechis.xlf:sumUpChanges')}">
+					{historyRow.rollbackLink -> f:format.raw()}
+				</span></span></td>
 				<td>{historyRow.time}</td>
 				<td>{historyRow.age}</td>
 				<td>
@@ -28,23 +28,23 @@
 					{historyRow.backendUserName}
 				</td>
 				<td>
-					<f:format.raw>{historyRow.tableUid}</f:format.raw>
+					{historyRow.tableUid -> f:format.raw()}
 				</td>
 				<td>
 					<f:if condition="{historyRow.action}">
 						<strong>
-							<f:format.raw>{historyRow.action}</f:format.raw>
+							{historyRow.action -> f:format.raw()}
 						</strong>
 					</f:if>
 					<f:if condition="{historyRow.fieldNames}">
-						<f:format.raw>{historyRow.fieldNames}</f:format.raw>
+						{historyRow.fieldNames -> f:format.raw()}
 					</f:if>
 					<f:if condition="{historyRow.differences}">
 						<f:render partial="RecordHistory/Diff" arguments="{differences: historyRow.differences}"/>
 					</f:if>
 				</td>
 				<td>
-					<f:format.raw>{historyRow.markState}</f:format.raw>
+					{historyRow.markState -> f:format.raw()}
 				</td>
 			</tr>
 		</f:for>
-- 
GitLab