* Added {{CURRENTHOUR}}
* Added [[:Image:Foo.png]] style links to the pagelinks table
* Avoid duplicate revision imports with Special:Import
-
+* (bug 7054) Validate email address before sending email confirmation message
== Languages updated ==
global $wgUser, $wgOut;
if( empty( $code ) ) {
if( $wgUser->isLoggedIn() ) {
- $this->showRequestForm();
+ if( User::isValidEmailAddr( $wgUser->getEmail() ) ) {
+ $this->showRequestForm();
+ } else {
+ $wgOut->addWikiText( wfMsg( 'confirmemail_noemail' ) );
+ }
} else {
$title = Title::makeTitle( NS_SPECIAL, 'Userlogin' );
$self = Title::makeTitle( NS_SPECIAL, 'Confirmemail' );
# E-mail address confirmation
'confirmemail' => 'Confirm E-mail address',
+'confirmemail_noemail' => 'You do not have a valid email address set in your [[Special:Preferences|user preferences]].',
'confirmemail_text' => "This wiki requires that you validate your e-mail address
before using e-mail features. Activate the button below to send a confirmation
mail to your address. The mail will include a link containing a code; load the