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

fix: ensure dots in content script patterns aren't used as wildcards #17593

Merged
merged 4 commits into from Mar 28, 2019

Conversation

MarshallOfSound
Copy link
Member

Notes: Injected chrome extensions that have content scripts with a . in the pattern field now treat it as a raw . instead of a wildcard

@trop
Copy link
Contributor

trop bot commented Mar 28, 2019

A maintainer has manually backported this PR to "5-0-x", please check out #17594

@MarshallOfSound MarshallOfSound merged commit 953d1ea into master Mar 28, 2019
@release-clerk
Copy link

release-clerk bot commented Mar 28, 2019

Release Notes Persisted

Injected chrome extensions that have content scripts with a . in the pattern field now treat it as a raw . instead of a wildcard

@MarshallOfSound MarshallOfSound deleted the MarshallOfSound-patch-1 branch March 28, 2019 21:03
@trop
Copy link
Contributor

trop bot commented Mar 28, 2019

A maintainer has manually backported this PR to "5-0-x", please check out #17594

@sofianguy sofianguy added this to Fixed in 5.0.0-beta.8 in 5.0.x Apr 4, 2019
kiku-jw pushed a commit to kiku-jw/electron that referenced this pull request May 16, 2019
…lectron#17593)

* fix: ensure dots in content script patterns aren't used as wildcards

* chore: sanitise all regexp special chars

* chore: extract to helper

* chore: fixup helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-pr 🌱 PR opened in the last 24 hours
Projects
No open projects
5.0.x
Fixed in 5.0.0-beta.8
Development

Successfully merging this pull request may close these issues.

None yet

2 participants