1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 07:08:09 +01:00

Merge pull request #5895 from 3D-I/ticket/16399

[ticket/16399] Fix Emoji in topic title for MCP split topic
This commit is contained in:
Marc Alexander 2020-03-16 14:19:46 +01:00
commit 46b4a74549
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -457,6 +457,12 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
$post_info = $post_info[$post_id];
$subject = trim($subject);
/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.
*/
$subject = utf8_encode_ucr($subject);
// Make some tests
if (!$subject)
{