dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e826449
)
Anons should not be able to use the change e-mail form at all
author
Chad Horohoe
<chadh@wikimedia.org>
Fri, 8 Nov 2013 18:55:57 +0000
(10:55 -0800)
committer
Chad Horohoe
<chadh@wikimedia.org>
Fri, 8 Nov 2013 18:55:58 +0000
(10:55 -0800)
They already bailed out on GET, but we should bail here on POST
rather than bait-and-switching.
Change-Id: Iaf0474e89d7e660e2025e02bda146aa23ecc592b
includes/specials/SpecialChangeEmail.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialChangeEmail.php
b/includes/specials/SpecialChangeEmail.php
index
aab839f
..
d02886f
100644
(file)
--- 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;