mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Making redirect message more informative
This commit is contained in:
parent
9e322d2565
commit
3e6ea9383b
3 changed files with 3 additions and 3 deletions
|
@ -247,7 +247,7 @@ class System extends BaseObject
|
|||
public static function externalRedirect($url)
|
||||
{
|
||||
if (!filter_var($url, FILTER_VALIDATE_URL)) {
|
||||
throw new InternalServerErrorException('URL is not a fully qualified URL, please use App->internalRedirect() instead');
|
||||
throw new InternalServerErrorException("'$url' is not a fully qualified URL, please use App->internalRedirect() instead");
|
||||
}
|
||||
|
||||
header("Location: $url");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue