-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Technical debtIssues the will help to reduce technical debtIssues the will help to reduce technical debtc: APIsFor bugs and features in the Matomo HTTP and plugin APIs.For bugs and features in the Matomo HTTP and plugin APIs.c: PlatformFor Matomo platform changes that aren't impacting any of our APIs but improve the core itself.For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.c: UsabilityFor issues that let users achieve a defined goal more effectively or efficiently.For issues that let users achieve a defined goal more effectively or efficiently.
Description
In TrackingCodeGenerator::generate(), htmlentities()
is used (improperly) to escape HTML characters. The result is then outputted w/o escaping in _displayJavascriptCode.twig. Instead, TrackingCodeGenerator should return JS code w/o any additional processing/escaping, and it should be escaped only in HTML/XML output.
This is BC breaking since it affects API output. Users of that API currently will have to unsanitize or display the text w/o escaping, so it may break uses.
Metadata
Metadata
Assignees
Labels
Technical debtIssues the will help to reduce technical debtIssues the will help to reduce technical debtc: APIsFor bugs and features in the Matomo HTTP and plugin APIs.For bugs and features in the Matomo HTTP and plugin APIs.c: PlatformFor Matomo platform changes that aren't impacting any of our APIs but improve the core itself.For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.c: UsabilityFor issues that let users achieve a defined goal more effectively or efficiently.For issues that let users achieve a defined goal more effectively or efficiently.