mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15712] Add Emoji and rich text in PM Draft subject
Extends to Drafts PHPBB3-15712
This commit is contained in:
parent
b0586b4f4d
commit
f0ebd6da0f
1 changed files with 6 additions and 0 deletions
|
@ -665,6 +665,12 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
$subject = (!$subject && $action != 'post') ? $user->lang['NEW_MESSAGE'] : $subject;
|
$subject = (!$subject && $action != 'post') ? $user->lang['NEW_MESSAGE'] : $subject;
|
||||||
$message = $request->variable('message', '', true);
|
$message = $request->variable('message', '', true);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
|
||||||
if ($subject && $message)
|
if ($subject && $message)
|
||||||
{
|
{
|
||||||
if (confirm_box(true))
|
if (confirm_box(true))
|
||||||
|
|
Loading…
Add table
Reference in a new issue