From: Michael Date: Thu, 14 Mar 2019 21:18:07 +0000 (+0000) Subject: Only remove when "acct:" is the beginning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd1fc091cb1d2e8cea1c0ad20590d2710600d185;p=friendica.git Only remove when "acct:" is the beginning --- diff --git a/mod/follow.php b/mod/follow.php index 9ecfdd8760..ba4ff35f19 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -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);