Actions
Bug #92284
closed<f:asset.script> ViewHelper double escape the src attribute
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;bar=baz
expected: https://typo3.org/foo.js?foo=bar&bar=baz
Actions