r73518 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r73517
|
r73518
|
r73519
>
Date:
12:30, 22 September 2010
Author:
catrope
Status:
deferred
Tags:
Comment:
SimpleSurvey: Set up a session before putting a token in $_SESSION. This fixes breakage in cases where an anon without a session cookie submits the survey.
Modified paths:
/trunk/extensions/SimpleSurvey/SpecialSimpleSurvey.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/SimpleSurvey/SpecialSimpleSurvey.php
—
—
@@ -36,6 +36,7 @@
37
37
38
38
public function setToken() {
39
39
$this->tokenToCheck = wfGenerateToken( array( $this, time() ) );
40
+ wfSetupSession();
40
41
$_SESSION['wsSimpleSurveyToken'] = $this->tokenToCheck;
41
42
}
42
43
Status & tagging log
00:20, 14 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r73518
[
removed:
old
added:
deferred]
22:14, 3 December 2010
Reedy
(
talk
|
contribs
)
changed the
status
of r73518
[
removed:
new
added:
old]