sforkowany z mirror/friendica
Merge pull request #6230 from annando/ext-redirect
Fix for exceptions on external redirects2022.09-rc
commit
e05552470d
|
@ -272,7 +272,7 @@ class System extends BaseObject
|
|||
*/
|
||||
public static function externalRedirect($url)
|
||||
{
|
||||
if (!filter_var($url, FILTER_VALIDATE_URL)) {
|
||||
if (empty(parse_url($url, PHP_URL_SCHEME))) {
|
||||
throw new InternalServerErrorException("'$url' is not a fully qualified URL, please use App->internalRedirect() instead");
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue