Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1604)
+++ branches/2.8.x/CHANGELOG	(revision 1605)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 =========================== add small Features 2.8.2 ==========================
+08 Feb-2012 Build 1605 Dietmar Woellbrink (Luisehahne)
+! login.php fallback to revision 1602
 08 Feb-2012 Build 1604 Dietmar Woellbrink (Luisehahne)
 # fixed parse error in login.php
 08 Feb-2012 Build 1603 Dietmar Woellbrink (Luisehahne)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1604)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1605)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.2');
-if(!defined('REVISION')) define('REVISION', '1604');
+if(!defined('REVISION')) define('REVISION', '1605');
 if(!defined('SP')) define('SP', 'SP2');
Index: branches/2.8.x/wb/account/login.php
===================================================================
--- branches/2.8.x/wb/account/login.php	(revision 1604)
+++ branches/2.8.x/wb/account/login.php	(revision 1605)
@@ -54,11 +54,11 @@
 // Create new login app
 $requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']);
 $redirect  = strip_tags(isset(${$requestMethod}['redirect']) ? ${$requestMethod}['redirect'] : '');
-$redirect = ((isset($_SESSION['HTTP_REFERER']) && ($redirect='')) ?  $_SESSION['HTTP_REFERER'] : $redirect);
-// $_SESSION['HTTP_REFERER'] = str_replace(WB_URL,'',$redirect);
+$redirect = ((isset($_SERVER['HTTP_REFERER']) && empty($redirect)) ?  $_SERVER['HTTP_REFERER'] : $redirect);
+$_SESSION['HTTP_REFERER'] = str_replace(WB_URL,'',$redirect);
 
 $loginUrl  = WB_URL.'/account/login.php';
-$loginUrl .= (($redirect!='') ? '?redirect=' .$_SESSION['HTTP_REFERER'] : $loginUrl);
+$loginUrl .= (!empty($redirect) ? '?redirect=' .$_SESSION['HTTP_REFERER'] : '');
 
 $ThemeUrl  = WB_URL.$wb->correct_theme_source('warning.html');
 // Setup template object, parse vars to it, then parse it
