diff options
| -rw-r--r-- | phpBB/includes/acp/acp_forums.php | 7 | ||||
| -rw-r--r-- | phpBB/language/en/acp/forums.php | 1 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index be5a7a2f26..cb0593b14a 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -986,6 +986,13 @@ class acp_forums  			$errors[] = $user->lang['FORUM_NAME_EMPTY'];  		} +		// No Emojis +		if (preg_match_all('/[\x{10000}-\x{10FFFF}]/u', $forum_data_ary['forum_name'], $matches)) +		{ +			$character_list = implode('<br>', $matches[0]); +			$errors[] = $user->lang('FORUM_NAME_EMOJI', $character_list); +		} +  		if (utf8_strlen($forum_data_ary['forum_desc']) > 4000)  		{  			$errors[] = $user->lang['FORUM_DESC_TOO_LONG']; diff --git a/phpBB/language/en/acp/forums.php b/phpBB/language/en/acp/forums.php index 7a7176369f..d92d3f8c9e 100644 --- a/phpBB/language/en/acp/forums.php +++ b/phpBB/language/en/acp/forums.php @@ -97,6 +97,7 @@ $lang = array_merge($lang, array(  	'FORUM_LINK_TRACK_EXPLAIN'			=> 'Records the number of times a forum link was clicked.',  	'FORUM_NAME'						=> 'Forum name',  	'FORUM_NAME_EMPTY'					=> 'You must enter a name for this forum.', +	'FORUM_NAME_EMOJI'					=> 'The forum name you entered is invalid.<br>It contains the following unsupported characters:<br>%s',  	'FORUM_PARENT'						=> 'Parent forum',  	'FORUM_PASSWORD'					=> 'Forum password',  	'FORUM_PASSWORD_CONFIRM'			=> 'Confirm forum password',  | 
