Browse Source

Code standards

pull/6020/head
Philipp Holzer 3 years ago
parent
commit
99a33b7335
No known key found for this signature in database GPG Key ID: 517BE60E2CE5C8A5
2 changed files with 1 additions and 3 deletions
  1. +0
    -1
      mod/randprof.php
  2. +1
    -2
      src/App.php

+ 0
- 1
mod/randprof.php View File

@ -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);
}


+ 1
- 2
src/App.php View File

@ -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);


Loading…
Cancel
Save