mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Bugfixing redirects
- Adding App->redirect if both redirects are possible
This commit is contained in:
parent
9c9ebfc7c9
commit
48535c0959
4 changed files with 25 additions and 19 deletions
|
@ -15,11 +15,7 @@ function randprof_init(App $a)
|
|||
if ($x) {
|
||||
$link = Contact::magicLink($x);
|
||||
// @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
|
||||
if (filter_var($link, FILTER_VALIDATE_URL)) {
|
||||
System::externalRedirect($link);
|
||||
} else {
|
||||
$a->internalRedirect($link);
|
||||
}
|
||||
$a->redirect($link);
|
||||
}
|
||||
|
||||
$a->internalRedirect('profile');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue