aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-06-29 12:52:45 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-06-29 12:52:45 +0000
commite146efbd165c71b00003f6ae3ea3f4de2da3d64b (patch)
tree2efd3bf1379d0ff2c89de9f9c0834deb6fc834e9 /phpBB
parenta8d678cc4cb18f6561c8bbf53c0f32aa931ffaca (diff)
downloadforums-e146efbd165c71b00003f6ae3ea3f4de2da3d64b.tar
forums-e146efbd165c71b00003f6ae3ea3f4de2da3d64b.tar.gz
forums-e146efbd165c71b00003f6ae3ea3f4de2da3d64b.tar.bz2
forums-e146efbd165c71b00003f6ae3ea3f4de2da3d64b.tar.xz
forums-e146efbd165c71b00003f6ae3ea3f4de2da3d64b.zip
Add some data for akismet et al
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9702 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/captcha/plugins/captcha_abstract.php4
-rw-r--r--phpBB/includes/ucp/ucp_register.php4
-rw-r--r--phpBB/posting.php7
3 files changed, 10 insertions, 5 deletions
diff --git a/phpBB/includes/captcha/plugins/captcha_abstract.php b/phpBB/includes/captcha/plugins/captcha_abstract.php
index c6de2ff887..86ecdaf97e 100644
--- a/phpBB/includes/captcha/plugins/captcha_abstract.php
+++ b/phpBB/includes/captcha/plugins/captcha_abstract.php
@@ -178,7 +178,7 @@ class phpbb_default_captcha
return;
}
- function validate()
+ function validate($data = false)
{
global $config, $db, $user;
@@ -344,7 +344,7 @@ class phpbb_default_captcha
function is_solved()
{
- if ($this->solved === 0)
+ if (request_var('confirm_code', false) && $this->solved === 0)
{
$this->validate();
}
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index a802a35b87..da62061a72 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -222,8 +222,8 @@ class ucp_register
if ($config['enable_confirm'])
{
- $vc_response = $captcha->validate();
- if (!$captcha->is_solved() && $vc_response)
+ $vc_response = $captcha->validate($data);
+ if ($vc_response)
{
$error[] = $vc_response;
}
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 9d06ac3e2c..598f500bc4 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -772,7 +772,12 @@ if ($submit || $preview || $refresh)
if ($config['enable_post_confirm'] && !$user->data['is_registered'] && in_array($mode, array('quote', 'post', 'reply')))
{
- $vc_response = $captcha->validate();
+ $captcha_data = array(
+ 'message' => utf8_normalize_nfc(request_var('message', '', true)),
+ 'subject' => utf8_normalize_nfc(request_var('subject', '', true)),
+ 'username' => utf8_normalize_nfc(request_var('username', '', true)),
+ );
+ $vc_response = $captcha->validate($captcha_data);
if ($vc_response)
{
$error[] = $vc_response;