r28134 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28133‎ | r28134 | r28135 >
Date:08:35, 4 December 2007
Author:rotem
Status:old
Tags:
Comment:
In ApiLogin, init session if necessary. This avoids a blank session ID when no session exists yet.
Modified paths:
  • /trunk/phase3/includes/api/ApiLogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiLogin.php
@@ -91,6 +91,11 @@
9292 'wpRemember' => ''
9393 ));
9494
 95+ // Init session if necessary
 96+ if( session_id() == '' ) {
 97+ wfSetupSession();
 98+ }
 99+
95100 $loginForm = new LoginForm($params);
96101 switch ($loginForm->authenticateUserData()) {
97102 case LoginForm :: SUCCESS :

Status & tagging log