]> git.mxchange.org Git - friendica.git/commitdiff
Only remove when "acct:" is the beginning
authorMichael <heluecht@pirati.ca>
Thu, 14 Mar 2019 21:18:07 +0000 (21:18 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 14 Mar 2019 21:18:07 +0000 (21:18 +0000)
mod/follow.php

index 9ecfdd8760b409e5368c4f797ca08cd70208855b..ba4ff35f1923e0556ae6f1451781f41bef778b65 100644 (file)
@@ -63,7 +63,9 @@ function follow_content(App $a)
        $url = Strings::escapeTags(trim(defaults($_REQUEST, 'url', '')));
 
        // Issue 6874: Allow remote following from Peertube
-       $url = str_replace('acct:', '', $url);
+       if (strpos($url, 'acct:') === 0) {
+               $url = str_replace('acct:', '', $url);
+       }
 
        if (!$url) {
                $a->internalRedirect($return_path);