From 1f675114718e39ba8d0de9b59ba1c652cd1c3e58 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 26 Jul 2005 04:22:12 +0000 Subject: [PATCH] fixed proxy block message, arbitrarily changed session name fetch code --- includes/SpecialUserlogin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index bb3e0c6a0f..84b36ccdb1 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -11,7 +11,7 @@ function wfSpecialUserlogin() { global $wgCommandLineMode; global $wgRequest; - if( !$wgCommandLineMode && !isset( $_COOKIE[ini_get('session.name')] ) ) { + if( !$wgCommandLineMode && !isset( $_COOKIE[session_name()] ) ) { User::SetupSession(); } @@ -190,7 +190,7 @@ class LoginForm { if ( $wgEnableSorbs && !in_array( $wgIP, $wgProxyWhitelist ) && $wgUser->inSorbsBlacklist( $wgIP ) ) { - $this->mainLoginForm( wfMsg( 'sorbs_create_account_reason' ) ); + $this->mainLoginForm( wfMsg( 'sorbs_create_account_reason' ) . ' (' . htmlspecialchars( $wgIP ) . ')' ); return; } -- 2.20.1