Skip to content
Snippets Groups Projects
Unverified Commit 5f5049c2 authored by Kevin O'Connor's avatar Kevin O'Connor
Browse files

Replace bare header redirect

This fixes a bug where the browser will fail to redirect away from
the login page if the client's browser doesn't allow for location
mutations with the 422 response code.

This issue only impacts SSO auth plugins.
parent 934cde36
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ elseif ($_GET['do']) {
elseif (!$thisstaff || !($thisstaff->getId() || $thisstaff->isValid())) {
if (($user = StaffAuthenticationBackend::processSignOn($errors, false))
&& ($user instanceof StaffSession))
@header("Location: $dest");
Http::redirect($dest);
}
// Browsers shouldn't suggest saving that username/password
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment