Skip to content

Commit 30c99a5

Browse files
jbqdregad
authored andcommitted
Filter commit message through db_mysql_fix_utf8()
Works around "Incorrect string value" for 4-bytes UTF-8 characters such as Emojis Signed-off-by: Damien Regad <[email protected]> Fixes #194 - Original commit modified to meet coding guidelines.
1 parent 0a23bb8 commit 30c99a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Source.API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ function save() {
927927
db_param() . ', ' . db_param() . ' )';
928928
db_query( $t_query, array(
929929
$this->repo_id, $this->revision, $this->parent, $this->branch,
930-
$this->user_id, $this->timestamp, $this->author, $this->message, $this->info,
930+
$this->user_id, $this->timestamp, $this->author, db_mysql_fix_utf8( $this->message ), $this->info,
931931
$this->ported, $this->author_email, $this->committer, $this->committer_email,
932932
$this->committer_id ) );
933933

0 commit comments

Comments
 (0)