1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00

adding normalization - shouldn't change anything

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10238 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2009-10-27 12:36:55 +00:00
parent 44719bd041
commit d53f9a22d6

View File

@ -502,7 +502,7 @@ class phpbb_captcha_qa
{ {
global $db; global $db;
$answer = ($this->question_strict) ? request_var('qa_answer', '', true) : utf8_clean_string(request_var('qa_answer', '', true)); $answer = ($this->question_strict) ? utf8_normalize_nfc(request_var('qa_answer', '', true)) : utf8_clean_string(utf8_normalize_nfc(request_var('qa_answer', '', true)));
$sql = 'SELECT answer_text $sql = 'SELECT answer_text
FROM ' . CAPTCHA_ANSWERS_TABLE . ' FROM ' . CAPTCHA_ANSWERS_TABLE . '
@ -789,7 +789,7 @@ class phpbb_captcha_qa
*/ */
function acp_get_question_input() function acp_get_question_input()
{ {
$answers = request_var('answers', '', true); $answers = utf8_normalize_nfc(request_var('answers', '', true));
$question = array( $question = array(
'question_text' => request_var('question_text', '', true), 'question_text' => request_var('question_text', '', true),
'strict' => request_var('strict', false), 'strict' => request_var('strict', false),