-
Notifications
You must be signed in to change notification settings - Fork 4
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
regex including hosts which are not in targets #38
Comments
A lot of these are in EFForg/https-everywhere@cd07963 on EFForg/https-everywhere#18938 |
Summary of rulesets in first possible batch to fix, roughly invalid rules with only a single hostname match.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/jayvdb/https-everywhere-py/blob/a3f2b42/https_everywhere/_rules.py#L406
There are lots of cases of regex which refer to hosts which are not in the rule targets.
They are currently detected, but are not being rejected, or considered in the tests.
The known ones are stored in
_FIXME_BROKEN_REGEX_MATCHES
:These are mostly fixed in EFForg/https-everywhere#18949 and EFForg/https-everywhere#18957 , but upstream has difficulty reviewing complex changesets - splitting them might help, but even so the progress on smaller PRs is very slow, so these problems will linger for a while, and need to be fixed in this library.
The regex hosts need to either be tested properly so that the extra hosts can be added to the targets and so be used in the processing logic, and optimised sanely, or the regex should be simplified to remove these extra hosts.
The text was updated successfully, but these errors were encountered: