I suggest to support simple patterns in cookie names, at least it would be great to use * to match any characters.
This can be useful for cookies with names which start from the fixed prefix and have arbitrary suffix.
I suggest to support simple patterns in cookie names, at least it would be great to use * to match any characters.
This can be useful for cookies with names which start from the fixed prefix and have arbitrary suffix.
Comments
Comment #2
maximpodorov commentedComment #4
svenryen commentedThanks for the patch. Looks good.
Comment #5
sinn commentedAnother solution - https://www.drupal.org/project/eu_cookie_compliance/issues/3039589
Comment #6
ocastle commentedPatch #2 works great.
I personally prefer this option over 3039589. Falls in line with other Drupal wildcards, less error prone and is more user friendly. Little less flexible maybe but has covered all requirements for me.
Comment #7
anybodyI agree with #6! #3039589: Wildcard support in cookie names is much cleaner and better for performance, because it checks for * with a much faster function. Let's close this as duplicate!
Comment #8
maximpodorov commented@Anybody, which solution is better?
Comment #9
anybodySorry, I pasted the wrong issue id. Of course I ment: #3039589: Wildcard support in cookie names - let's test and review there to get the solution committed please.
Comment #10
maximpodorov commented@Anybody, probably you closed the issue which has better solution. :)
Comment #11
anybodyDa** h*** ... I did... SORRY! I should stop reviewing issues at this point, my head seems to overheat ;) SORRY again, I'll close the other one. -.-
This one is RTBC'd instead.
Comment #12
anybodyShould be backported to D7 as of https://www.drupal.org/project/eu_cookie_compliance/issues/3039589#comme...
Comment #13
svenryen commentedThe patch didn't apply cleanly. Here's an updated patch, as well as a port to D7. It would be great if somebody could review.
Comment #14
svenryen commentedComment #15
svenryen commentedDrupal 7 port and updated Drupal 8 patch that doesn't keeps the term "allow list".
Comment #16
svenryen commentedComment #17
svenryen commentedComment #18
svenryen commentedComment #19
thatguy commentedRe-rolled D8 patch from comment #15 to work with latest dev.
Comment #21
svenryen commentedComment #22
svenryen commentedComment #23
svenryen commentedComment #25
svenryen commentedThanks for the patch - tested and committed.