Log message #4209957

# At Username Text
# Oct 22nd 2019, 08:30 tokam but this is not enough.
# Oct 22nd 2019, 08:29 tokam I tries to do this validation with if ( (!isset($this->_values[$this->name][$firstName])
# Oct 22nd 2019, 08:29 tokam and be also backwards compatible
# Oct 22nd 2019, 08:29 tokam and if I use an api that manages cookies, the API should do that.
# Oct 22nd 2019, 08:29 tokam it comes from $_COOKIES
# Oct 22nd 2019, 08:29 tokam no
# Oct 22nd 2019, 08:28 admad you should validate user input
# Oct 22nd 2019, 08:27 tokam $this->_values[$this->name][$firstName]
# Oct 22nd 2019, 08:27 tokam Some user had this value in this variable
# Oct 22nd 2019, 08:27 tokam string(64) " %'w/ Bo" x}%2 D @ B 2ӵ Mand [ y U0 W vh "
# Oct 22nd 2019, 08:27 admad it's more likely the problem is in your app rather than core code, 2.x code is very mature.
# Oct 22nd 2019, 08:26 admad FYI you just need a github account to be able to contribute
# Oct 22nd 2019, 08:26 tokam I think the issue is that some weird value gets into the system after the upgrade.
# Oct 22nd 2019, 08:26 admad that's more like it. Upgrade to latest 2.10.x and if you still have error then you can submit a bug report or fix.
# Oct 22nd 2019, 08:26 tokam But this fixed just one of the cases.
# Oct 22nd 2019, 08:23 tokam 2.9.0
# Oct 22nd 2019, 08:23 tokam ////////////////////////////////////////////////////////////////////////////////////////////////////
# Oct 22nd 2019, 08:10 admad tokam: i highly doubt you are using "0.2.9", what's the actual version?
# Oct 22nd 2019, 07:55 tokam can you please confirm that this is the correct bugfix? If possible maybe also add me to contributors, unless this is way too much to ask?
# Oct 22nd 2019, 07:55 tokam In CookieComponent.php
# Oct 22nd 2019, 07:55 tokam if ( (!isset($this->_values[$this->name][$firstName]) || $this->_values[$this->name][$firstName] == '') andand $isMultiValue) {
# Oct 22nd 2019, 07:55 tokam and replaced it by this one
# Oct 22nd 2019, 07:55 tokam if
# Oct 22nd 2019, 07:55 tokam f ( (!isset($this->_values[$this->name][$firstName]) ) andand $isMultiValue) {
# Oct 22nd 2019, 07:55 tokam We changed this line ...
# Oct 22nd 2019, 07:48 jotpe Morning
# Oct 22nd 2019, 07:42 kgb.acct.personal In CakePHP 2, what's the proper way to render exceptions as JSON?
# Oct 22nd 2019, 07:01 tokam maybe in a previous version a string was used, and it is still serialized in a cookie?
# Oct 22nd 2019, 07:01 tokam $value
# Oct 22nd 2019, 07:01 tokam );
# Oct 22nd 2019, 07:01 tokam $names[1],
# Oct 22nd 2019, 07:01 tokam $this->_values[$this->name][$firstName],
# Oct 22nd 2019, 07:01 tokam $this->_values[$this->name][$firstName] = Hash::insert(
# Oct 22nd 2019, 07:00 tokam This parameter comes from your framework. Not from a Controller using your function. It is an internal parameter.
# Oct 22nd 2019, 07:00 tokam 08w/\xB5Bo"\x7F\xBD\xF6...', 'utm_source', 'mydomain.de SK...')
# Oct 22nd 2019, 07:00 tokam fatal error: Uncaught TypeError: Argument 1 passed to Hash::insert() must be of the type array, string given, called in /var/www/vhosts/mydomain.de/httpdocs/lib/Cake/Controller/Component/CookieComponent.php on line 245 and defined in /var/www/vhosts/mydomain.de/httpdocs/lib/Cake/Utility/Hash.php:257 Stack trace: #0 /var/www/vhosts/mydomain.de/httpdocs/lib/Cake/Controller/Component/CookieComponent.php(245): Hash::insert('\xBA\x8F\xB6%'\x
# Oct 22nd 2019, 06:59 tokam Hi, I am having this problem after the update to Version 0.2.9
# Oct 22nd 2019, 05:53 alexdd55976 Morning
# Oct 22nd 2019, 05:01 adam282 That depends…
# Oct 22nd 2019, 04:47 Fastidius anyone here?
# Oct 22nd 2019, 02:41 joechua can anyone help me with crud-json-api