Issue Bug Closed

#102317Special characters are encoded in scheduled tasks as HTML entities

Imko Schumacher 11/05/23, 17:22 updated 07/09/24, 15:19

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"

scheduler-specialcharacters.png

Steps to reproduce

  1. Open scheduler module in TYPO3 backend
  2. Create new task
  3. Select “Execute console commands (scheduler)”
  4. Set “Schedulable Command” to “impexp:export”
  5. Save
  6. Look at “Option: levels”

Relevant source code

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.

Reviews 2