aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2020-01-20 17:28:30 +0100
committerMarc Alexander <admin@m-a-styles.de>2020-01-20 17:28:30 +0100
commit12a624330f409e502f89802fc57f5e8bba849e9b (patch)
treede71288000ef74561270e163f861062534302279
parentMerge branch '3.2.x' into 3.3.x (diff)
parentMerge pull request #5814 from 3D-I/ticket/15079 (diff)
downloadphpbb-12a624330f409e502f89802fc57f5e8bba849e9b.tar.gz
phpbb-12a624330f409e502f89802fc57f5e8bba849e9b.tar.bz2
phpbb-12a624330f409e502f89802fc57f5e8bba849e9b.zip
Merge branch '3.2.x' into 3.3.x
-rw-r--r--phpBB/posting.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index c4042e48e6..cdc19903fd 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -736,6 +736,12 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && (
$subject = (!$subject && $mode != 'post') ? $post_data['topic_title'] : $subject;
$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 (confirm_box(true))