(post_addition): Add support for

honeypot.
This commit is contained in:
Alex Schroeder
2011-12-01 10:20:14 +00:00
parent fc8492114f
commit fd45843014

View File

@@ -210,7 +210,9 @@ sub post_addition {
summary => $title,
username => GetParam('username'),
pwd => GetParam('pwd'));
# spam fighting modules
$params{$QuestionaskerSecretKey} = 1 if $QuestionaskerSecretKey;
$params{$HoneyPotOk} = time if $HoneyPotOk;
my $response = $ua->post($site, \%params);
if ($response->is_error) {
print $q->p("The submission failed!");