From 5ee7f20f4ee110c2ae0b122e9efbd4fabf669581 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 10 Jun 2014 15:51:25 +0200 Subject: [ticket/11711] Improve coding and comments of character check PHPBB3-11711 --- phpBB/includes/message_parser.php | 2 +- phpBB/posting.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB') diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 8965b50667..9d95620e0f 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -1195,7 +1195,7 @@ class parse_message extends bbcode_firstpass } // Check for out-of-bounds characters that are currently - // not supported by utf8_bin + // not supported by utf8_bin in MySQL if (preg_match_all('/[\x{10000}-\x{10FFFF}]/u', $this->message, $matches)) { $character_list = implode('
', $matches[0]); diff --git a/phpBB/posting.php b/phpBB/posting.php index fc407caf69..17eac71bd3 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1029,7 +1029,7 @@ if ($submit || $preview || $refresh) } // Check for out-of-bounds characters that are currently - // not supported by utf8_bin + // not supported by utf8_bin in MySQL if (preg_match_all('/[\x{10000}-\x{10FFFF}]/u', $post_data['post_subject'], $matches)) { $character_list = implode('
', $matches[0]); -- cgit v1.2.1