phpBB

Code Changes

File: posting.php

  Unmodified   Added   Modified   Removed
Line 1184Line 1184
	/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.

	/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.

 
	 * Check the permissions for posting Emojis first.

	 */

	 */

 
	if ($auth->acl_get('u_emoji'))
{

	$post_data['post_subject'] = utf8_encode_ucr($post_data['post_subject']);

	$post_data['post_subject'] = utf8_encode_ucr($post_data['post_subject']);





	}
else
{

	/**

	/**

	 * This should never happen again.
* Leaving the fallback here just in case there will be the need of it.
*

 
	 * Check for out-of-bounds characters that are currently
* not supported by utf8_bin in MySQL
*/

	 * Check for out-of-bounds characters that are currently
* not supported by utf8_bin in MySQL
*/

Line 1199Line 1201
		$character_list = implode('<br>', $matches[0]);

$error[] = $user->lang('UNSUPPORTED_CHARACTERS_SUBJECT', $character_list);

		$character_list = implode('<br>', $matches[0]);

$error[] = $user->lang('UNSUPPORTED_CHARACTERS_SUBJECT', $character_list);

 
		}

	}

$post_data['poll_last_vote'] = (isset($post_data['poll_last_vote'])) ? $post_data['poll_last_vote'] : 0;

	}

$post_data['poll_last_vote'] = (isset($post_data['poll_last_vote'])) ? $post_data['poll_last_vote'] : 0;