]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Merge pull request #7974 from tobiasd/20191220-lng
[friendica.git] / mod / follow.php
index 8a00e0559ce3d4132dca07cc3f8084638e981dc7..31b92aa0dc06eb6873de05af9f3a647febc5901e 100644 (file)
@@ -60,7 +60,9 @@ function follow_content(App $a)
        }
 
        $uid = local_user();
-       $url = 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) {