diff --git a/mod/randprof.php b/mod/randprof.php index 9377f88af..d0b3c4ef8 100644 --- a/mod/randprof.php +++ b/mod/randprof.php @@ -14,7 +14,6 @@ function randprof_init(App $a) if ($x) { $link = Contact::magicLink($x); - // @TODO making the return of magicLink save to use either externalRedirect or internalRedirect $a->redirect($link); } diff --git a/src/App.php b/src/App.php index 7a579036c..429fa059f 100644 --- a/src/App.php +++ b/src/App.php @@ -2016,8 +2016,7 @@ class App */ public function redirect($toUrl) { - if (filter_var($toUrl, FILTER_VALIDATE_URL)) - { + if (filter_var($toUrl, FILTER_VALIDATE_URL)) { Core\System::externalRedirect($toUrl); } else { $this->internalRedirect($toUrl);