From: Henry S. <kel...@ph...> - 2009-07-27 06:16:00
|
Author: Kellanved Date: Mon Jul 27 07:15:47 2009 New Revision: 9865 Log: #48685 Modified: branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php Modified: branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php (original) --- branches/phpBB-3_0_0/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php Mon Jul 27 07:15:47 2009 *************** *** 54,60 **** $user->add_lang('captcha_qa'); // read input $this->confirm_id = request_var('qa_confirm_id', ''); ! $this->answer = request_var('qa_answer', ''); $this->type = (int) $type; $this->question_lang = $user->data['user_lang']; --- 54,60 ---- $user->add_lang('captcha_qa'); // read input $this->confirm_id = request_var('qa_confirm_id', ''); ! $this->answer = request_var('qa_answer', '', true); $this->type = (int) $type; $this->question_lang = $user->data['user_lang']; *************** *** 448,454 **** { global $db; ! $answer = ($this->question_strict) ? request_var('qa_answer', '') : utf8_clean_string(request_var('qa_answer', '')); $sql = 'SELECT answer_text FROM ' . ANSWERS_TABLE . ' --- 448,454 ---- { global $db; ! $answer = ($this->question_strict) ? request_var('qa_answer', '', true) : utf8_clean_string(request_var('qa_answer', '', true)); $sql = 'SELECT answer_text FROM ' . ANSWERS_TABLE . ' *************** *** 578,586 **** { // okay, show the editor $error = false; ! $input_question = request_var('question_text', ''); ! $input_answers = request_var('answers', ''); ! $input_lang = request_var('lang_iso', ''); $input_strict = request_var('strict', false); $langs = $this->get_languages(); foreach ($langs as $lang => $entry) --- 578,586 ---- { // okay, show the editor $error = false; ! $input_question = request_var('question_text', '', true); ! $input_answers = request_var('answers', '', true); ! $input_lang = request_var('lang_iso', '', true); $input_strict = request_var('strict', false); $langs = $this->get_languages(); foreach ($langs as $lang => $entry) *************** *** 724,733 **** global $db; $question = array( ! 'question_text' => request_var('question_text', ''), 'strict' => request_var('strict', false), 'lang_iso' => request_var('lang_iso', ''), ! 'answers' => explode("\n", request_var('answers', '')), ); return $question; --- 724,733 ---- global $db; $question = array( ! 'question_text' => request_var('question_text', '', true), 'strict' => request_var('strict', false), 'lang_iso' => request_var('lang_iso', ''), ! 'answers' => explode("\n", request_var('answers', '', true)), ); return $question; |