From 9de1b313083db562798f6b498d4cc944bc3b48d6 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Quenot Date: Mon, 16 Jan 2017 17:26:56 +0100 Subject: [PATCH] Filter commit message through db_mysql_fix_utf8() Works around "Incorrect string value" for 4-bytes UTF-8 characters such as Emojis --- Source/Source.API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Source.API.php b/Source/Source.API.php index 3775335bf..9b3c42547 100644 --- a/Source/Source.API.php +++ b/Source/Source.API.php @@ -927,7 +927,7 @@ function save() { db_param() . ', ' . db_param() . ' )'; db_query( $t_query, array( $this->repo_id, $this->revision, $this->parent, $this->branch, - $this->user_id, $this->timestamp, $this->author, $this->message, $this->info, + $this->user_id, $this->timestamp, $this->author, db_mysql_fix_utf8($this->message), $this->info, $this->ported, $this->author_email, $this->committer, $this->committer_email, $this->committer_id ) );