r33522 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33521‎ | r33522 | r33523 >
Date:21:34, 17 April 2008
Author:brion
Status:old
Tags:
Comment:
*cough* whoops, fix gaping security hole
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuthHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthHooks.php
@@ -95,7 +95,7 @@
9696
9797 $centralUser = CentralAuthUser::getInstance( $user );
9898
99 - if ($centralUser->exists()) {
 99+ if ($centralUser->exists() && $centralUser->isAttached()) {
100100 $centralUser->setGlobalCookies($user);
101101 } else {
102102 return true;

Status & tagging log