mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-16 12:29:43 +02:00
Merge branch '3.2.x' into 3.3.x
This commit is contained in:
commit
1d90ddc0a9
@ -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))
|
||||||
@ -870,6 +876,12 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
|||||||
'address_list' => $address_list
|
'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)
|
// ((!$message_subject) ? $subject : $message_subject)
|
||||||
$msg_id = submit_pm($action, $subject, $pm_data);
|
$msg_id = submit_pm($action, $subject, $pm_data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user