Bug #102317
closedSpecial characters are encoded in scheduled tasks as HTML entities
100%
Description
Special characters (e.g. &, ") in the title and description of arguments/options (console commands) are displayed as HTML entities and not as characters.
Expected result: Option: levels. The depth of the exported page tree. "-2": "Records on this page", "-1"
Actual result: Option: levels. The depth of the exported page tree. "-2": "Records on this page", "-1"
Steps to reproduce¶
- Open scheduler module in TYPO3 backend
- Create new task
- Select "Execute console commands (scheduler)"
- Set "Schedulable Command" to "impexp:export"
- Save
- Look at "Option: levels"
Relevant source code¶
- scheduler/Resources/Private/Partials/AddEditAdditionalFields.html
- scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php
Proposed fix¶
Remove htmlspecialchars
in ExecuteSchedulableCommandAdditionalFieldProvider.
Since https://review.typo3.org/c/Packages/TYPO3.CMS/+/73051 the label is not handled by CshViewHelper (outputted raw html) anymore. Instead the value is directly used in the fluid template.
Files
Updated by Imko Schumacher about 1 year ago
- Related to Task #96574: Refactor ext:scheduler controller and view added
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81685
Updated by Benni Mack about 1 year ago
- Related to Bug #93317: HTML Code in BE lables - EXT:scheduler added
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81697
Updated by Imko Schumacher about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 86e7fff45b0109a7bc2a3db0f42bb8462abb3501.
Updated by Benni Mack 11 months ago
- Related to Bug #92983: Header formatting in scheduler for Console Commands added