Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add m-link target attribute #193

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Add m-link target attribute #193

merged 1 commit into from
Aug 14, 2024

Conversation

MarcusLongmuir
Copy link
Collaborator

@MarcusLongmuir MarcusLongmuir commented Aug 13, 2024

This PR adds a target attribute to the m-link element.

This also necessitated restricting the href values that can be used because with the inclusion of _self as a target URLs such as javascript:alert('foo'); would run in the current window and be trivially exploitable.


What kind of changes does your PR introduce? (check at least one)

  • Feature

Does your PR introduce a breaking change? (check one)

  • Yes

If yes, please describe its impact and migration path for existing applications:

Minor: Using a href such as javascript:alert('foo'); would previously have opened a new tab and run that script. Now the link will not open.

Does your PR fulfill the following requirements?

  • All tests are passing

@TheCodeTherapy TheCodeTherapy merged commit 42bcaa5 into main Aug 14, 2024
8 checks passed
@TheCodeTherapy TheCodeTherapy deleted the feature/m-link-target branch August 14, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚢 Released
Development

Successfully merging this pull request may close these issues.

2 participants