Issue Bug Closed

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

Frank Nägler 09/10/20, 21:54 updated 12/22/20, 11:06

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

Reviews 4