]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Discover directory type
[friendica.git] / mod / follow.php
index 1f12f565e69ac67e2c235ee1a56e2e5b48a64c28..31b92aa0dc06eb6873de05af9f3a647febc5901e 100644 (file)
@@ -61,8 +61,8 @@ function follow_content(App $a)
 
        $uid = local_user();
 
-       // Issue 4815: Silently removing a trailing @
-       $url = ltrim(Strings::escapeTags(trim(defaults($_REQUEST, 'url', ''))), '@!');
+       // Issue 4815: Silently removing a prefixing @
+       $url = ltrim(Strings::escapeTags(trim($_REQUEST['url'] ?? '')), '@!');
 
        // Issue 6874: Allow remote following from Peertube
        if (strpos($url, 'acct:') === 0) {