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

This commit is contained in:
Philipp 2022-07-07 21:47:39 +02:00
parent e4a83eafb8
commit 34f2b2f558
No known key found for this signature in database
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)
{