mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-12-18 01:30:42 +00:00
Follow-up r109455: make it clear that it's about e-mail *addresses*, also fix consistency: email -> e-mail and E-mail -> e-mail.
This commit is contained in:
parent
5f24728d1d
commit
ed81c5b979
Notes:
Robin Pepermans
2012-01-21 15:05:49 +00:00
|
@ -15,7 +15,7 @@ class EmailBlacklist extends BaseBlacklist {
|
|||
}
|
||||
|
||||
/**
|
||||
* Checks a User object for a blacklisted email
|
||||
* Checks a User object for a blacklisted e-mail address
|
||||
*
|
||||
* @param User $user
|
||||
* @return bool True on valid email
|
||||
|
@ -32,9 +32,9 @@ class EmailBlacklist extends BaseBlacklist {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Check for whitelisted emails
|
||||
// Check for whitelisted e-mail addresses
|
||||
if ( is_array( $whitelists ) ) {
|
||||
wfDebugLog( 'SpamBlacklist', "Excluding whitelisted emails from " . count( $whitelists ) .
|
||||
wfDebugLog( 'SpamBlacklist', "Excluding whitelisted e-mail addresses from " . count( $whitelists ) .
|
||||
" regexes: " . implode( ', ', $whitelists ) . "\n" );
|
||||
foreach ( $whitelists as $regex ) {
|
||||
if ( preg_match( $regex, $email ) ) {
|
||||
|
@ -46,7 +46,7 @@ class EmailBlacklist extends BaseBlacklist {
|
|||
|
||||
|
||||
# Do the match
|
||||
wfDebugLog( 'SpamBlacklist', "Checking email against " . count( $blacklists ) .
|
||||
wfDebugLog( 'SpamBlacklist', "Checking e-mail address against " . count( $blacklists ) .
|
||||
" regexes: " . implode( ', ', $blacklists ) . "\n" );
|
||||
foreach ( $blacklists as $regex ) {
|
||||
if ( preg_match( $regex, $email ) ) {
|
||||
|
|
|
@ -24,28 +24,28 @@ $messages['en'] = array(
|
|||
# have been blocked by blacklist entries.
|
||||
#
|
||||
#</pre> <!-- leave this line exactly as it is -->',
|
||||
'email-blacklist' => ' # Emails matching this list will be blocked from registering or sending email
|
||||
'email-blacklist' => ' # E-mail addresses matching this list will be blocked from registering or sending e-mails
|
||||
# This list affects only this wiki; refer also to the global blacklist.
|
||||
# For documentation see https://www.mediawiki.org/wiki/Extension:SpamBlacklist
|
||||
#<!-- leave this line exactly as it is --> <pre>
|
||||
#
|
||||
# Syntax is as follows:
|
||||
# * Everything from a "#" character to the end of the line is a comment
|
||||
# * Every non-blank line is a regex fragment which will only match hosts inside e-mails
|
||||
# * Every non-blank line is a regex fragment which will only match hosts inside e-mail addresses
|
||||
|
||||
#</pre> <!-- leave this line exactly as it is -->',
|
||||
'email-whitelist' => ' #<!-- leave this line exactly as it is --> <pre>
|
||||
# Emails matching this list will *not* be blocked even if they would
|
||||
# Email addresses matching this list will *not* be blocked even if they would
|
||||
# have been blocked by blacklist entries.
|
||||
#
|
||||
#</pre> <!-- leave this line exactly as it is -->
|
||||
# Syntax is as follows:
|
||||
# * Everything from a "#" character to the end of the line is a comment
|
||||
# * Every non-blank line is a regex fragment which will only match hosts inside e-mails',
|
||||
# * Every non-blank line is a regex fragment which will only match hosts inside e-mail addresses',
|
||||
|
||||
'spam-blacklisted-email' => 'Blacklisted E-mail',
|
||||
'spam-blacklisted-email' => 'Blacklisted e-mail address',
|
||||
'spam-blacklisted-email-text' => 'Your e-mail address is currently blacklisted from sending e-mails to other users.',
|
||||
'spam-blacklisted-email-signup' => 'The e-mail address given is currently blacklisted from use.',
|
||||
'spam-blacklisted-email-signup' => 'The given e-mail address is currently blacklisted from use.',
|
||||
|
||||
'spam-invalid-lines' => "The following spam blacklist {{PLURAL:$1|line is an|lines are}} invalid regular {{PLURAL:$1|expression|expressions}} and {{PLURAL:$1|needs|need}} to be corrected before saving the page:",
|
||||
'spam-blacklist-desc' => 'Regex-based anti-spam tool: [[MediaWiki:Spam-blacklist]] and [[MediaWiki:Spam-whitelist]]',
|
||||
|
|
|
@ -76,7 +76,7 @@ class SpamBlacklistHooks {
|
|||
}
|
||||
|
||||
/**
|
||||
* Processes new accounts for valid emails
|
||||
* Processes new accounts for valid e-mail addresses
|
||||
*
|
||||
* @param $user User
|
||||
* @param $abortError
|
||||
|
|
Loading…
Reference in a new issue