Collapsible commit info improperly renders commit.titleHtml
- Create a commit with
&(or<or>) in the title. - Navigate to the repository browser.
- Resize below
smbreakpoint (I use mobile device emulation in Chrome). - Click "⋯" button to reveal the full commit title.
- Note that entities are shown as-is.
- Do it again but include a reference to an issue, like
#1. - Have another look — it gets worse!
app/assets/javascripts/repository/components/collapsible_commit_info.vue L132 uses {{ commit.titleHtml }} — we should use v-safe-html to interpret the HTML here. (It's produced by the backend and is very safe for use with v-safe-html.)
Edited by 🤖 GitLab Bot 🤖

