diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-08-11 17:15:46 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-08-11 17:15:46 +0200 |
commit | 0854c7226dac3e241fa7a9a8bb6a49e257bd8c5d (patch) | |
tree | 6d09293d98b66291e1f2c624425576b5c1f0b925 /phpBB/includes/functions_posting.php | |
parent | 5fe3719f13ef6e7b85276af3d029cfdfc07b5637 (diff) | |
parent | d18e5473327fe7edf1fdaec13db8a9079a2168ac (diff) | |
download | forums-0854c7226dac3e241fa7a9a8bb6a49e257bd8c5d.tar forums-0854c7226dac3e241fa7a9a8bb6a49e257bd8c5d.tar.gz forums-0854c7226dac3e241fa7a9a8bb6a49e257bd8c5d.tar.bz2 forums-0854c7226dac3e241fa7a9a8bb6a49e257bd8c5d.tar.xz forums-0854c7226dac3e241fa7a9a8bb6a49e257bd8c5d.zip |
Merge pull request #5651 from 3D-I/ticket/15897
[ticket/15897] Fix Emojis' SQL Error in Attachment Comment
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index c5a7400ddf..2cce77e092 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -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 |