-
Notifications
You must be signed in to change notification settings - Fork 81
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
set-cookie not converting [] Cookie Names #2777
Comments
Per the documentation for
Per the documentation for
The following filters therefore work - but only if they are from a "trusted source" which is currently the uBO created filter lists (i.e. those prefixed with "uBlock filters – ...") and the user's own filters from "My filters":
|
If only setting a simple value of 1 or 0, isn't this fine in set-cookie? Correct me if I'm wrong that trusted support applys to non-boolean values |
I followed AdGuard's reference documentation to implement
I think the idea is to prevent using
Encoding the name prevents this. When I enter this at the console of
Which is what the |
Okay. |
Maybe we could discuss with @ameshkov a different safety approach: if a cookie name has any character outside the ones considered safe, the scriptlet won't do anything. The unsafe set of characters would be |
Ah nope, you're correct |
@gorhill sounds like a good solution. The easiest way would be to follow the RFC, but the problem is that it actually forbids separators including Actually, what if we only forbid |
What about |
IMO fine is: dlalakierni.pl###RodoCookiesInfo:remove() If nobody can document breakges. The webshop plug-in uses bootstrap, so it can be done in a way that doesn't even meet EU requirements and Google policy. On older uBo without remove possible too: dlalakierni.pl###RodoCookiesInfo, .modal-backdrop
dlalakierni.pl##.modal-open:style(overflow: visible !important;) I guess uBo 1.7.x is unpopular to address by legacy scriptlets ( |
fix uBlockOrigin/uBlock-issues#2777 partial undo uBlockOrigin/uAssets@4043800 (I guess only trusted sources can disable by "#@#")
Fixed with gorhill/uBlock@11a4856 |
Prerequisites
I tried to reproduce the issue when...
Description
Using set-cookie, [] isn't translated or with
\[
\]
A specific URL where the issue occurs.
https://www.dlalakierni.pl/
Steps to Reproduce
Add the following; to counter the cookie message: (or with
\[
\]
)or,
Expected behavior
Doesn't counter cookie message
Actual behavior
translate too
AtomStore%5BCOOKIES_ACCEPTED%5D
,AtomStore%5BFUNCTIONAL_COOKIES_ACCEPTED%5D
,AtomStore%5BMARKETING_COOKIES_ACCEPTED%5D
Instead of
AtomStore[MARKETING_COOKIES_ACCEPTED]
,AtomStore[FUNCTIONAL_COOKIES_ACCEPTED]
,AtomStore[COOKIES_ACCEPTED]
uBO version
1.51.1b
Browser name and version
All Bravey baby
Operating System and version
Windows
The text was updated successfully, but these errors were encountered: