r107129 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107128‎ | r107129 | r107130 >
Date:01:26, 23 December 2011
Author:laner
Status:ok
Tags:
Comment:
Fix a session invalidation error when using LdapAuthentication.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -127,7 +127,11 @@
128128 }
129129
130130 if( !$wgAuth->validDomain( $this->mDomain ) ) {
131 - $this->mDomain = 'invaliddomain';
 131+ if ( isset( $_SESSION['wsDomain'] ) ) {
 132+ $this->mDomain = $_SESSION['wsDomain'];
 133+ } else {
 134+ $this->mDomain = 'invaliddomain';
 135+ }
132136 }
133137 $wgAuth->setDomain( $this->mDomain );
134138

Sign-offs

UserFlagDate
Nikerabbitinspected13:46, 23 December 2011

Status & tagging log