]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Simplified null check
[friendica.git] / mod / redir.php
index 4069518cddb5ad8163a2cb00e315271f3b981104..71db74e9a42eb34bd07c456a2084ce22ed588c8a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -170,7 +170,7 @@ function redir_magic($a, $cid, $url)
        }
 
        // Test for magic auth on the target system
-       $serverret = DI::httpRequest()->curl($basepath . '/magic');
+       $serverret = DI::httpRequest()->get($basepath . '/magic');
        if ($serverret->isSuccess()) {
                $separator = strpos($target_url, '?') ? '&' : '?';
                $target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);