X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Frandprof.php;h=d0b3c4ef85dc629aaab75d2def14c449d9ff1737;hb=735cb7c6c1619662925df913360c7eb0ec3c3b9d;hp=055b3dcbe8650b9d86d725085045dea48e78b2ae;hpb=dbe49a0c1ad0467c2e12e363aac5635a1f11a3ea;p=friendica.git diff --git a/mod/randprof.php b/mod/randprof.php index 055b3dcbe8..d0b3c4ef85 100644 --- a/mod/randprof.php +++ b/mod/randprof.php @@ -14,12 +14,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');