mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-12 23:57:29 +02:00
redirects should be HTTP/302
This commit is contained in:
parent
4517ce23a6
commit
ad17b10c8e
@ -28,7 +28,7 @@ class mailu extends rcube_plugin
|
|||||||
header('HTTP/1.0 403 Forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
print('mailu sso failure');
|
print('mailu sso failure');
|
||||||
} else {
|
} else {
|
||||||
header('Location: sso.php');
|
header('Location: sso.php', 302);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@ -47,19 +47,19 @@ class mailu extends rcube_plugin
|
|||||||
{
|
{
|
||||||
$this->load_config();
|
$this->load_config();
|
||||||
$sso_logout_url = rcmail::get_instance()->config->get('sso_logout_url');
|
$sso_logout_url = rcmail::get_instance()->config->get('sso_logout_url');
|
||||||
header('Location: ' . $sso_logout_url, true);
|
header('Location: ' . $sso_logout_url, true, 302);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function login($args)
|
function login($args)
|
||||||
{
|
{
|
||||||
header('Location: index.php');
|
header('Location: index.php', 302);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function login_failed($args)
|
function login_failed($args)
|
||||||
{
|
{
|
||||||
header('Location: sso.php');
|
header('Location: sso.php', 302);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ if (isset($_SERVER['HTTP_X_REMOTE_USER']) && isset($_SERVER['HTTP_X_REMOTE_USER_
|
|||||||
$ssoHash = \RainLoop\Api::CreateUserSsoHash($email, $password);
|
$ssoHash = \RainLoop\Api::CreateUserSsoHash($email, $password);
|
||||||
|
|
||||||
// redirect to webmail sso url
|
// redirect to webmail sso url
|
||||||
header('Location: index.php?sso&hash='.$ssoHash);
|
header('Location: index.php?sso&hash='.$ssoHash, 302);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
header('HTTP/1.0 403 Forbidden');
|
header('HTTP/1.0 403 Forbidden', 403);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user