Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure to correctly encode segment title for tooltips #22223

Merged
merged 3 commits into from
May 15, 2024
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented May 15, 2024

Description:

The segment title used for html tooltips in comparison boxes was not escaped correctly.
This can cause the segment titles not to be displayed correctly when they contain characters like < and >

Review

@sgiehl sgiehl added c: Security For issues that make Matomo more secure. Please report issues through HackerOne and not in Github. Needs Review PRs that need a code review labels May 15, 2024
@sgiehl sgiehl added this to the 5.1.0 milestone May 15, 2024
@sgiehl sgiehl requested a review from a team May 15, 2024 14:17
@sgiehl sgiehl merged commit 4a5a877 into 5.x-dev May 15, 2024
23 of 25 checks passed
@sgiehl sgiehl deleted the fixescaping branch May 15, 2024 16:15
caddoo pushed a commit that referenced this pull request May 20, 2024
* Ensure to correctly encode segment title for tooltips

* also escape segment definitions

* improve code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Security For issues that make Matomo more secure. Please report issues through HackerOne and not in Github. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants