Code standards

This commit is contained in:
Philipp Holzer 2018-10-24 20:44:19 +02:00
parent 310d49b82a
commit 99a33b7335
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 1 additions and 3 deletions

View file

@ -14,7 +14,6 @@ function randprof_init(App $a)
if ($x) { if ($x) {
$link = Contact::magicLink($x); $link = Contact::magicLink($x);
// @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
$a->redirect($link); $a->redirect($link);
} }

View file

@ -2016,8 +2016,7 @@ class App
*/ */
public function redirect($toUrl) public function redirect($toUrl)
{ {
if (filter_var($toUrl, FILTER_VALIDATE_URL)) if (filter_var($toUrl, FILTER_VALIDATE_URL)) {
{
Core\System::externalRedirect($toUrl); Core\System::externalRedirect($toUrl);
} else { } else {
$this->internalRedirect($toUrl); $this->internalRedirect($toUrl);