From: GitHub <no...@gi...> - 2016-07-03 09:24:02
|
Branch: refs/heads/master-1.3.x Home: https://github.com/mantisbt/mantisbt Commit: 805ef0cba438336c91c663da772c75b66ecad4fd https://github.com/mantisbt/mantisbt/commit/805ef0cba438336c91c663da772c75b66ecad4fd Author: Damien Regad <dr...@ma...> Date: 2016-07-03 (Sun, 03 Jul 2016) Changed paths: M core/database_api.php Log Message: ----------- New database API function db_mysql_fix_utf8() This new function replaces 4-byte UTF-8 chars by Unicode U+FFFD character for MySQL databases. This is a temporary workaround to avoid data getting truncated on MySQL databases using native utf8 encoding which only supports 3 bytes chars, until we're able to support utf8mb4 charset (see issue #20431). Fixes #21101 Commit: 4dcb16cc9011a3675e71df6d5f71b6d69d9ed3d3 https://github.com/mantisbt/mantisbt/commit/4dcb16cc9011a3675e71df6d5f71b6d69d9ed3d3 Author: Damien Regad <dr...@ma...> Date: 2016-07-03 (Sun, 03 Jul 2016) Changed paths: M core/bug_api.php M core/bugnote_api.php M core/cfdefs/cfdef_standard.php M core/custom_field_api.php Log Message: ----------- Fix 4-byte UTF-8 chars issues on MySQL This applies the new db_mysql_fix_utf8() function to the following fields: - bug.summary - bug.description - bug.steps_to_reproduce - bug.additional_information - bugnote.text - custom fields Fixes #21101 Compare: https://github.com/mantisbt/mantisbt/compare/d9ea999254a2...4dcb16cc9011 |