mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 02:22:39 +00:00
Make permission denied redirects host relative.
This helps fix infinite redirect loops when HTTP_X_FORWARDED_HOST is set, and fixes redirects back to external domains on authentication errors. Fixes #3207
This commit is contained in:
parent
d33f676ddd
commit
0282194c20
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ class AuthComponent extends Component {
|
|||
if (!empty($this->loginRedirect)) {
|
||||
$default = $this->loginRedirect;
|
||||
}
|
||||
$controller->redirect($controller->referer($default), null, true);
|
||||
$controller->redirect($controller->referer($default, true), null, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue