]> git.mxchange.org Git - friendica.git/commitdiff
Issue 4815: Silently ignoring trailing @ at follow requests
authorMichael <heluecht@pirati.ca>
Sat, 29 Jun 2019 19:01:07 +0000 (19:01 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 29 Jun 2019 19:01:07 +0000 (19:01 +0000)
mod/follow.php

index 8a00e0559ce3d4132dca07cc3f8084638e981dc7..1f12f565e69ac67e2c235ee1a56e2e5b48a64c28 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 trailing @
+       $url = ltrim(Strings::escapeTags(trim(defaults($_REQUEST, 'url', ''))), '@!');
 
        // Issue 6874: Allow remote following from Peertube
        if (strpos($url, 'acct:') === 0) {