1
0
Fork 0

Add the right exceptions for BaseUrl::redirect and respect them when catching exceptions at the Trust page

This commit is contained in:
Philipp Holzer 2022-07-07 21:47:39 +02:00
commit 34f2b2f558
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
4 changed files with 23 additions and 2 deletions

View file

@ -441,6 +441,12 @@ class System
*
* @param string $url The new Location to redirect
* @param int $code The redirection code, which is used (Default is 302)
*
* @throws FoundException
* @throws MovedPermanentlyException
* @throws TemporaryRedirectException
*
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function externalRedirect($url, $code = 302)
{