mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9865 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e7b3a68259
commit
63dc25e5b4
@ -54,7 +54,7 @@ class phpbb_captcha_qa
|
|||||||
$user->add_lang('captcha_qa');
|
$user->add_lang('captcha_qa');
|
||||||
// read input
|
// read input
|
||||||
$this->confirm_id = request_var('qa_confirm_id', '');
|
$this->confirm_id = request_var('qa_confirm_id', '');
|
||||||
$this->answer = request_var('qa_answer', '');
|
$this->answer = request_var('qa_answer', '', true);
|
||||||
|
|
||||||
$this->type = (int) $type;
|
$this->type = (int) $type;
|
||||||
$this->question_lang = $user->data['user_lang'];
|
$this->question_lang = $user->data['user_lang'];
|
||||||
@ -448,7 +448,7 @@ class phpbb_captcha_qa
|
|||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$answer = ($this->question_strict) ? request_var('qa_answer', '') : utf8_clean_string(request_var('qa_answer', ''));
|
$answer = ($this->question_strict) ? request_var('qa_answer', '', true) : utf8_clean_string(request_var('qa_answer', '', true));
|
||||||
|
|
||||||
$sql = 'SELECT answer_text
|
$sql = 'SELECT answer_text
|
||||||
FROM ' . ANSWERS_TABLE . '
|
FROM ' . ANSWERS_TABLE . '
|
||||||
@ -578,9 +578,9 @@ class phpbb_captcha_qa
|
|||||||
{
|
{
|
||||||
// okay, show the editor
|
// okay, show the editor
|
||||||
$error = false;
|
$error = false;
|
||||||
$input_question = request_var('question_text', '');
|
$input_question = request_var('question_text', '', true);
|
||||||
$input_answers = request_var('answers', '');
|
$input_answers = request_var('answers', '', true);
|
||||||
$input_lang = request_var('lang_iso', '');
|
$input_lang = request_var('lang_iso', '', true);
|
||||||
$input_strict = request_var('strict', false);
|
$input_strict = request_var('strict', false);
|
||||||
$langs = $this->get_languages();
|
$langs = $this->get_languages();
|
||||||
foreach ($langs as $lang => $entry)
|
foreach ($langs as $lang => $entry)
|
||||||
@ -724,10 +724,10 @@ class phpbb_captcha_qa
|
|||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$question = array(
|
$question = array(
|
||||||
'question_text' => request_var('question_text', ''),
|
'question_text' => request_var('question_text', '', true),
|
||||||
'strict' => request_var('strict', false),
|
'strict' => request_var('strict', false),
|
||||||
'lang_iso' => request_var('lang_iso', ''),
|
'lang_iso' => request_var('lang_iso', ''),
|
||||||
'answers' => explode("\n", request_var('answers', '')),
|
'answers' => explode("\n", request_var('answers', '', true)),
|
||||||
);
|
);
|
||||||
|
|
||||||
return $question;
|
return $question;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user