From: Chad Horohoe Date: Fri, 8 Nov 2013 18:55:57 +0000 (-0800) Subject: Anons should not be able to use the change e-mail form at all X-Git-Tag: 1.31.0-rc.0~18219 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=a55e363f50c071631881487416daa49397386252;p=lhc%2Fweb%2Fwiklou.git Anons should not be able to use the change e-mail form at all They already bailed out on GET, but we should bail here on POST rather than bait-and-switching. Change-Id: Iaf0474e89d7e660e2025e02bda146aa23ecc592b --- diff --git a/includes/specials/SpecialChangeEmail.php b/includes/specials/SpecialChangeEmail.php index aab839fdfd..d02886f500 100644 --- a/includes/specials/SpecialChangeEmail.php +++ b/includes/specials/SpecialChangeEmail.php @@ -75,7 +75,7 @@ class SpecialChangeEmail extends UnlistedSpecialPage { $user = $this->getUser(); $request = $this->getRequest(); - if ( !$request->wasPosted() && !$user->isLoggedIn() ) { + if ( !$user->isLoggedIn() ) { $this->error( 'changeemail-no-info' ); return;