Skip to content

Commit

Permalink
Fixed an XSS vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 3, 2023
1 parent 8c2ad0b commit b77cb30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -18,7 +18,7 @@
- Fixed a bug where automatically-added Matrix blocks (per the field’s Min Blocks setting) were getting discarded if no changes were made to them. ([#12973](https://github.com/craftcms/cms/issues/12973))
- Fixed an error that could occur when installing Craft with an existing project config, if any image transforms were defined that didn’t specify the `upscale` property.
- Fixed a bug where nested folders in asset search results weren’t showing their relative path.
- Fixed an XSS vulnerability.
- Fixed XSS vulnerabilities.

## 4.4.5 - 2023-03-21

Expand Down
4 changes: 2 additions & 2 deletions src/templates/_components/widgets/CraftSupport/body.twig
Expand Up @@ -78,11 +78,11 @@
{% endset %}
{{ links.externalLink({
link: 'https://craftcms.com/docs/4.x/',
text: documentationLinkHtml
html: documentationLinkHtml
}) }}
{{ links.externalLink({
link: 'https://craftcms.com/knowledge-base',
text: knowledgeBaseLinkHtml
html: knowledgeBaseLinkHtml
}) }}
</div>
</form>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/_includes/links.twig
Expand Up @@ -11,7 +11,7 @@
href: config.link,
target: '_blank',
rel: 'noopener',
html: config.text ~ _self.externalLinkIcon()
html: (config.html ?? config.text|e) ~ _self.externalLinkIcon()
} %}
{{ tag('a', linkAttributes) }}
{% endmacro %}
{% endmacro %}

0 comments on commit b77cb30

Please sign in to comment.