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
Родитель 1589edf2ca
Коммит 7e0d9ff21b
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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 %]