Project

General

Profile

Actions

Bug #92284

closed

<f:asset.script> ViewHelper double escape the src attribute

Added by Frank Nägler over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2020-09-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The ScriptViewHelper adds the value of the src attribute to the AssetCollector.
Because of fluids default attribute escaping the value of the src attribute is already encoded while calling AssetCollector->addJavaScript().

The result is a wrong escaped src attribute in the frontend.

example:

input: https://typo3.org/foo.js?foo=bar&bar=baz
output: https://typo3.org/foo.js?foo=bar&amp;amp;bar=baz
expected: https://typo3.org/foo.js?foo=bar&amp;bar=baz


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #91742: Fluid view helper asset.script escape childrenResolved2020-07-03

Actions
Related to TYPO3 Core - Bug #92706: ScriptViewHelper and CssViewHelper access view helper arguments via TagBuilderClosed2020-10-26

Actions
Related to TYPO3 Core - Bug #92051: f:asset.script breaks ampersands and thus functionalityClosed2020-08-19

Actions
Actions

Also available in: Atom PDF