Skip to content

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

@Alex-302

Description

@Alex-302
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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions