X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fredir.php;h=a158f31798cdf01313268c616e608b506ead8e05;hb=8b450be09bacada8e4ae96079065783bbdacdf5b;hp=557bbe4443173452cc8b292ca9530054a51c9f09;hpb=8f460644306bcad39a2bd901eb2b9df388716df9;p=friendica.git diff --git a/mod/redir.php b/mod/redir.php index 557bbe4443..a158f31798 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -35,10 +35,9 @@ function redir_init(App $a) { } $url = $_GET['url'] ?? ''; - $quiet = !empty($_GET['quiet']) ? '&quiet=1' : ''; - if ($a->argc > 1 && intval($a->argv[1])) { - $cid = intval($a->argv[1]); + if (DI::args()->getArgc() > 1 && intval(DI::args()->getArgv()[1])) { + $cid = intval(DI::args()->getArgv()[1]); } else { $cid = 0; } @@ -143,7 +142,7 @@ function redir_magic($a, $cid, $url) } // Test for magic auth on the target system - $serverret = DI::httpRequest()->get($basepath . '/magic'); + $serverret = DI::httpClient()->get($basepath . '/magic'); if ($serverret->isSuccess()) { $separator = strpos($target_url, '?') ? '&' : '?'; $target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);