Skip to content

Commit

Permalink
Filter commit message through db_mysql_fix_utf8()
Browse files Browse the repository at this point in the history
Works around "Incorrect string value" for 4-bytes UTF-8 characters such
as Emojis

Signed-off-by: Damien Regad <dregad@mantisbt.org>

Fixes #194 - Original commit modified to meet coding guidelines.
  • Loading branch information
jbq authored and dregad committed Feb 18, 2017
1 parent 0a23bb8 commit 30c99a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Source.API.php
Expand Up @@ -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 ) );

Expand Down

0 comments on commit 30c99a5

Please sign in to comment.