Comments (6)
Hi @klodeckl,
the only explenation I currently have in mind that some users have a mess in their cookie value and the json_decode just returns a boolean.
Anyway, I will try to adjust this to prevent this exception.
Greetings
Daniel
from mindshape_cookie_consent.
Thank you! :)
But how could get mess in the cookie value?
from mindshape_cookie_consent.
I changed the function now to the following:
if (false === self::hasCookie($name) || is_bool(json_decode($_COOKIE[$name], true)) === true) {
return null;
}
return json_decode($_COOKIE[$name], true);
I will check if the error wonβt occur anymore now. Maybe instead of is_bool === true it would be better to check for is_array || is_null === false.
from mindshape_cookie_consent.
Hi @klodeckl,
I solved this here: 22bfbf2
This shouldn't happen except a user/script/adblocker tries to manipulate the consent cookie somehow, but this should make it safe now. (Broken cookies will also be ignored by the JavaScript prompting the modal and save it properly)
Greetings
Daniel
from mindshape_cookie_consent.
Hi @klodeckl,
an update with this fix is now released in TER.
Greetings
Daniel
from mindshape_cookie_consent.
Thank you!
from mindshape_cookie_consent.
Related Issues (20)
- Trying to create translation of necessary_cookie_options entries throws SQL "incorrect integer value" error HOT 3
- Google Consent Mode [Feature Request] HOT 2
- PHP Warnings. HOT 2
- Add script bug HOT 2
- Path of javascript and stylesheets is incorrect when used with TYPO3 11 HOT 1
- TYPO3 12.4 Compatible Version HOT 1
- PHP 8.2 compatibility HOT 3
- Statistics - selected time period throws exeption HOT 4
- TYPO3 Exception: syntax error, unexpected ')' HOT 4
- Error in Log: Core: Exception handler (WEB): Uncaught TYPO3 Exception: Mindshape\MindshapeCookieConsent\Service\CookieConsentService::__construct(): Argument #2 ($configurationRepository) must be of type Mindshape\MindshapeCookieConsent\Domain\Repository\ConfigurationRepository HOT 4
- Plugin prevents Caching HOT 7
- Missing neccessary cookies in "Cookie List" HOT 2
- TypeError in List View, TYPO3 12.4.9 HOT 8
- TYPO3 12 CSP settings HOT 4
- PHP Warning: Undefined array key "site" in `Classes/UserFunc/ConfigurationTcaUserFunc.php` line 46 with TYPO3 12.4.10 HOT 11
- Cannot add override labels with new language HOT 2
- Problem with current PHP 8.3.2 version HOT 6
- Disable Plugin for new site with root directory... HOT 1
- Error on Statistics View 2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mindshape_cookie_consent.