X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Frandprof.php;h=d0b3c4ef85dc629aaab75d2def14c449d9ff1737;hb=0bfafc63ccac42b3f0a76e2174edc98126f62d59;hp=055b3dcbe8650b9d86d725085045dea48e78b2ae;hpb=ff203c277dfd8619ccfb63edebaf54274e27bf2d;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');