forked from GNUsocial/gnu-social
[UTIL][EXCEPTION] Forward given status code in RedirectException
This commit is contained in:
parent
7a8d67f1e2
commit
7814697f82
@ -46,7 +46,7 @@ class RedirectException extends Exception
|
||||
throw new ServerException(_m('Can not redirect to outside the website from here'), 5400); // 500 Internal server error (likely a bug)
|
||||
}
|
||||
}
|
||||
$this->redirect_response = new RedirectResponse($url);
|
||||
$this->redirect_response = new RedirectResponse($url, $code);
|
||||
}
|
||||
parent::__construct($message, $code, $previous_exception);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user