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

Cookie rules with [ and ] in the name considered as invalid #1843

Closed
Alex-302 opened this issue Dec 25, 2023 · 0 comments
Closed

Cookie rules with [ and ] in the name considered as invalid #1843

Alex-302 opened this issue Dec 25, 2023 · 0 comments

Comments

@Alex-302
Copy link
Member

06:24:07.235 [DefaultDispatcher-worker-1] WARN  Native - urlfilter: cookierule_extract_modifiers(): rule has wrong syntax: cookie name should not contain '['
06:24:07.235 [DefaultDispatcher-worker-1] WARN  Native - AGProxyFilter: Rule rejected by all filters: ||patched.to^$cookie=mybb[lastactive]

AdGuard for Windows 7.16.0 nightly 14 (4541) (CL 1.13.115, DL 2.4.37 )

Using JS rules I can create such cookies:

[example.org#%#document.cookie](http://example.org/#%#document.cookie) = "aaa[bbb]=ccc";

image

example.org#%#document.cookie = "aaa=bbb[ccc]";

image

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

No branches or pull requests

3 participants