aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-08-10 21:02:39 +0200
committer3D-I <eataly3d@gmail.com>2019-08-10 21:02:45 +0200
commitd18e5473327fe7edf1fdaec13db8a9079a2168ac (patch)
treec50823ee4c6b9c6553f2d4683970e2c5ea601ffa /phpBB/includes/functions_posting.php
parentc86e771dfe98632e7a9505625117d05836a8d615 (diff)
downloadforums-d18e5473327fe7edf1fdaec13db8a9079a2168ac.tar
forums-d18e5473327fe7edf1fdaec13db8a9079a2168ac.tar.gz
forums-d18e5473327fe7edf1fdaec13db8a9079a2168ac.tar.bz2
forums-d18e5473327fe7edf1fdaec13db8a9079a2168ac.tar.xz
forums-d18e5473327fe7edf1fdaec13db8a9079a2168ac.zip
[ticket/15897] Fix Emojis' SQL Error in Attachment Comment
PHPBB3-15897
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
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