1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

Merge pull request #5651 from 3D-I/ticket/15897

[ticket/15897] Fix Emojis' SQL Error in Attachment Comment
This commit is contained in:
Marc Alexander
2019-08-11 17:15:46 +02:00
2 changed files with 6 additions and 0 deletions

View File

@@ -2079,6 +2079,11 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll_ary, &$data
continue;
}
if (preg_match('/[\x{10000}-\x{10FFFF}]/u', $attach_row['attach_comment']))
{
trigger_error('ATTACH_COMMENT_NO_EMOJIS');
}
if (!$attach_row['is_orphan'])
{
// update entry in db if attachment already stored in db and filespace