Permalink
Show file tree
Hide file tree
14 changes: 10 additions & 4 deletions
14
plugins/tracker/include/Tracker/Semantic/Tooltip/TooltipFetcher.php
37 changes: 30 additions & 7 deletions
37
plugins/tracker/tests/unit/Tracker/Semantic/Tooltip/TooltipFetcherTest.php
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix request #31586: XSS in the tooltip via an artifact title
Next step for the current story #26777 is to display the xref on top of the title so in order to prepare the field we use mustache to escape the title instead of DOMPurifier. Part of story #26777: have artifact tooltips on roadmap Change-Id: I534ead8a88361b364f5ee81556251dc3dc4c0bf6
- Loading branch information
Showing
4 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
plugins/tracker/templates/tooltip/artifact-tooltip-title.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {{ title }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters