Bug #92983
closed
Header formatting in scheduler for Console Commands
Added by Tomas Norre Mikkelsen almost 4 years ago.
Updated 6 months ago.
Description
When using symfony Console commands in the backend, there are some issues with the formatting.
When choosing the "Execute Console Commands" and scroll down to the selection field. I see following
Schedulable Command. <em>Save and reopen to define command arguments</em>
The "em" is not parsed.
Files
It's coming from this and the following functions as I see it.
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php#L335
/**
* Get a human-readable label for a command argument
*
* @param InputArgument $argument
* @return string
*/
protected function getArgumentLabel(InputArgument $argument): string
{
return 'Argument: ' . $argument->getName() . '. <em>' . htmlspecialchars($argument->getDescription()) . '</em>';
}
/**
* Get a human-readable label for a command option
*
* @param InputOption $option
* @return string
*/
protected function getOptionLabel(InputOption $option): string
{
return 'Option: ' . htmlspecialchars($option->getName()) . '. <em>' . htmlspecialchars($option->getDescription()) . '</em>';
}
I have tried to use the format viewhelper in the EditTask.html to have it parsed correct. But no success.
- Related to Bug #92964: Headers are shown with HTML tags in scheduler task added
I don't think they are only related, I think there are the "same" issue.
Seems to be a general problem.
I can confirm this bug.
It comes from a double encoding in the "typo3/sysext/fluid/Classes/ViewHelpers/Be/Labels/CshViewHelper.php":
// Double encode can be set to true, once the typo3fluid/fluid fix is released and required
$label = '<label>' . htmlspecialchars($label, ENT_QUOTES, null, false) . '</label>';
Eric
- Status changed from New to Closed
I close that as duplicate of #92964
- Status changed from Closed to New
- Status changed from New to Accepted
- Related to Bug #102317: Special characters are encoded in scheduled tasks as HTML entities added
- Status changed from Accepted to Needs Feedback
I do think this is fixed with #102317 - can you verify this?
- Status changed from Needs Feedback to Closed
closing issue because of lack of feedback.
if still valid, feel free to reopen a new issue and set this one as related!
thanks!
Also available in: Atom
PDF