[Koha-bugs] [Bug 28489] CGI::Session is incorrectly serialized to DB in production env / when strict_sql_modes = 0

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 31 13:10:57 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28489

--- Comment #5 from Joonas Kylmälä <joonas.kylmala at helsinki.fi> ---
I found another workaround:

$datastr = decode_utf8(encode_utf8($datastr)); 

inside CGI::Session::Driver::mysql::store fixes the problem. The difference
seems to be that $datastr is not marked as utf8 string. And after it is
(decode_utf8 does it) the string is stored correctly to the DB.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list