Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There's an error in the check of the disabled eu_cookie_compliance_js_alter
.
It says (strpos(!empty($parts[2]) && $parts[2], '//')
but it should have been (!empty($parts[2]) && strpos($parts[2], '//') === 0)
Comment | File | Size | Author |
---|---|---|---|
#3 | eu_cookie_compliance-small-bug-in-disable-script-feature-3175032-3.patch | 584 bytes | svenryen |
Comments
Comment #2
svenryen CreditAttribution: svenryen at Ramsalt Lab commentedHere's a patch to resolve the issue.
Steps for testing:
1. Install a module that provides an external script, such as "sharethis"
2. Create a category called "cat"
3. Enter the following in the Disable scripts field:
4. Verify that the sharethis buttons are suppressed till you accept cookies.
Comment #3
svenryen CreditAttribution: svenryen at Ramsalt Lab commentedI generated the wrong patch. Here's the right one :)
Comment #5
Neslee Canil PintoComment #6
Neslee Canil Pinto