1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/16665] Fix Emoji for strings in board settings

PHPBB3-16665
This commit is contained in:
3D-I 2020-12-24 00:04:36 +01:00
parent 3f97a557a6
commit d6427e777c

View File

@ -582,7 +582,20 @@ class acp_board
continue;
}
$config->set($config_name, $config_value);
$config_name_ary = ['sitename', 'site_desc', 'site_home_text', 'board_index_text', 'board_disable_msg'];
if (in_array($config_name, $config_name_ary))
{
/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.
*/
$config->set($config_name, utf8_encode_ucr($config_value));
}
else
{
$config->set($config_name, $config_value);
}
if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable']))
{