aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/captcha/plugins
diff options
context:
space:
mode:
authorGaëtan Muller <m.gaetan89@gmail.com>2015-02-02 21:35:46 +0100
committerGaëtan Muller <m.gaetan89@gmail.com>2015-02-03 20:50:40 +0100
commitabcb2680eec86dc8016c489ebc7362e29be9e4df (patch)
treeea0491929e6c625d639e4036166365aaae582fc7 /phpBB/phpbb/captcha/plugins
parentf6e06da4c68917dafb057bf7fe19f884a3e148c2 (diff)
downloadforums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar.gz
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar.bz2
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar.xz
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.zip
[ticket/13455] Remove unnecessary calls to `utf8_normalize_nfc()`
PHPBB3-13455
Diffstat (limited to 'phpBB/phpbb/captcha/plugins')
-rw-r--r--phpBB/phpbb/captcha/plugins/qa.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/captcha/plugins/qa.php b/phpBB/phpbb/captcha/plugins/qa.php
index 657cfe9217..b4586f1234 100644
--- a/phpBB/phpbb/captcha/plugins/qa.php
+++ b/phpBB/phpbb/captcha/plugins/qa.php
@@ -65,7 +65,7 @@ class qa
// read input
$this->confirm_id = $request->variable('qa_confirm_id', '');
- $this->answer = utf8_normalize_nfc($request->variable('qa_answer', '', true));
+ $this->answer = $request->variable('qa_answer', '', true);
$this->type = (int) $type;
$this->question_lang = $user->lang_name;
@@ -546,7 +546,7 @@ class qa
{
global $db, $request;
- $answer = ($this->question_strict) ? utf8_normalize_nfc($request->variable('qa_answer', '', true)) : utf8_clean_string(utf8_normalize_nfc($request->variable('qa_answer', '', true)));
+ $answer = ($this->question_strict) ? $request->variable('qa_answer', '', true) : utf8_clean_string($request->variable('qa_answer', '', true));
$sql = 'SELECT answer_text
FROM ' . $this->table_captcha_answers . '
@@ -830,7 +830,7 @@ class qa
{
global $request;
- $answers = utf8_normalize_nfc($request->variable('answers', '', true));
+ $answers = $request->variable('answers', '', true);
$question = array(
'question_text' => $request->variable('question_text', '', true),
'strict' => $request->variable('strict', false),