Bug 356338 - quick fix to stop some fairly simple spam. Thanks to Frank Wein.

This commit is contained in:
gerv%gerv.net 2006-10-13 11:27:39 +00:00
parent 9f37491cd5
commit bbaa1b91c1
2 changed files with 12 additions and 0 deletions

View File

@ -66,6 +66,12 @@ if (!$action) {
|| die("Template process failed: " . $template->error() . "\n");
}
elsif ($action eq "submit") {
# Simple Mozilla-specific hotfix against spam, 2006-10-13
if (($form->{'subject'} eq 'LINKS') &&
($form->{'product'} eq 'Firefox 2 Beta 1')) {
throwError("like_spam");
}
# Format the parameters and send to the newsgroup.
# Check for compulsory parameters

View File

@ -50,6 +50,12 @@
[% message FILTER html %]
</pre>
[% CASE "like_spam" %]
<p class="error">
Sorry, your message looks like some spam we've been receiving. Please
press Back, change the Summary to something else and try again.
</p>
[% CASE DEFAULT %]
The error is unknown. Please try again later.
[% END %]