bug 1176: Fix yet another stupid piece of legacy code begging to cause trouble bug-1176
authorBenny Baumann <BenBE@geshi.org>
Tue, 2 Jul 2013 21:28:57 +0000 (23:28 +0200)
committerBenny Baumann <BenBE@geshi.org>
Tue, 2 Jul 2013 21:28:57 +0000 (23:28 +0200)
includes/loggedin.php

index cdff74b..4f9b8e8 100644 (file)
 
        if($_SESSION['profile']['loggedin'] < 1)
        {
-               unset($_SESSION['_config']['oldlocation']);
+               $_SESSION['_config']['oldlocation'] = '';
 
                foreach($_REQUEST as $key => $val)
                {
-                       if($_SESSION['_config']['oldlocation'])
+                       if('' != $_SESSION['_config']['oldlocation'])
                                $_SESSION['_config']['oldlocation'] .= "&";
 
                        $key = str_replace(array("\n", "\r"), '', $key);