1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-20 07:42:09 +02:00

Merge pull request #5982 from 3D-I/ticket/16480

[ticket/16480] Fix Emoji in report post
This commit is contained in:
Marc Alexander 2020-05-18 21:41:01 +02:00
commit 3757caf449
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -105,6 +105,12 @@ class report
$reason_id = $this->request->variable('reason_id', 0);
$report_text = $this->request->variable('report_text', '', true);
/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.
*/
$report_text = utf8_encode_ucr($report_text);
$submit = $this->request->variable('submit', '');
$cancel = $this->request->variable('cancel', '');