зеркало из https://github.com/mozilla/pjs.git
Bug 356338 - quick fix to stop some fairly simple spam. Thanks to Frank Wein.
This commit is contained in:
Родитель
1589edf2ca
Коммит
7e0d9ff21b
|
@ -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 %]
|
||||
|
|
Загрузка…
Ссылка в новой задаче