Actions
Bug #102317
closedSpecial characters are encoded in scheduled tasks as HTML entities
Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2023-11-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
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
Actions