-
- Downloads
There was an error fetching the commit references. Please try again later.
Merge branch 'html-safe-diff-line-content' into 'security'
Don't accidentally mark unsafe diff lines as HTML safe Fixes potential XSS issue when a legacy diff note is created on a merge request whose diff contained HTML See https://gitlab.com/gitlab-org/gitlab-ce/issues/25249 See merge request !2040
Showing
- app/helpers/diff_helper.rb 3 additions, 1 deletionapp/helpers/diff_helper.rb
- changelogs/unreleased/html-safe-diff-line-content.yml 4 additions, 0 deletionschangelogs/unreleased/html-safe-diff-line-content.yml
- spec/helpers/diff_helper_spec.rb 52 additions, 9 deletionsspec/helpers/diff_helper_spec.rb
Please register or sign in to comment