Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Updated sanitization logic for separators #6374

Merged
merged 1 commit into from
Dec 22, 2016
Merged

Updated sanitization logic for separators #6374

merged 1 commit into from
Dec 22, 2016

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Dec 21, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Updated sanitization logic for separators

  • don't allow menu to start with one
  • don't allow menu to end with one
  • don't allow only a separator

Fixes #5765

Auditors: @bbondy, @cezaraugusto

Test Plan:

  1. Launch Brave on Windows and go to preferences
  2. Disable pocket and any password managers
  3. Visit about:about
  4. Right click the page; you should not see any separators at the end

- don't allow menu to start with one
- don't allow menu to end with one
- don't allow only a separator

Fixes #5765

Auditors: @bbondy

Test Plan:
1. Launch Brave on Windows and go to preferences
2. Disable pocket and any password managers
3. Visit about:about
4. Right click the page; you should not see any separators at the end
@bsclifton bsclifton added this to the 0.13.0 milestone Dec 21, 2016
@bbondy
Copy link
Member

bbondy commented Dec 22, 2016

++

@bbondy bbondy merged commit 1517f60 into brave:master Dec 22, 2016
Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants