1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15712] Add Emoji and rich text in PM subject

PHPBB3-15712
This commit is contained in:
3D-I
2020-01-02 20:07:55 +01:00
parent fcca5c5b58
commit b0586b4f4d

View File

@@ -870,6 +870,12 @@ function compose_pm($id, $mode, $action, $user_folders = array())
'address_list' => $address_list
);
/**
* 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);
// ((!$message_subject) ? $subject : $message_subject)
$msg_id = submit_pm($action, $subject, $pm_data);