To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit bdfe6b3a authored by Reto Da Forno's avatar Reto Da Forno
Browse files

use request URL instead of script name for forwarding

parent a5f78f67
......@@ -54,8 +54,8 @@
// check for login parameters
if (!(isset($_POST['username']) && isset($_POST['password']) && do_login($_POST['username'], $_POST['password']))) {
if (count($_POST)==0)
$_SESSION['request_path']=$_SERVER['SCRIPT_NAME'];
else
$_SESSION['request_path']=$_SERVER['REQUEST_URI']; //$_SERVER['SCRIPT_NAME']
else
unset($_SESSION['request_path']);
header('Location: https://'.$hostname.($path == '/' ? '' : $path).'/login.php');
exit;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment