[BUGFIX] Escaped content in RecordHistory InfoBox 92/47792/3
authorStephan Großberndt <stephan@grossberndt.de>
Tue, 19 Apr 2016 15:19:46 +0000 (17:19 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 19 Apr 2016 21:10:39 +0000 (23:10 +0200)
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>
typo3/sysext/backend/Resources/Private/Partials/RecordHistory/History.html

index ffcfd3c..dc8f70f 100644 (file)
@@ -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>
                                        {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>