+ $url = Strings::escapeTags(trim(defaults($_REQUEST, 'url', '')));
+
+ // Issue 6874: Allow remote following from Peertube
+ if (strpos($url, 'acct:') === 0) {
+ $url = str_replace('acct:', '', $url);
+ }
+
+ if (!$url) {
+ $a->internalRedirect($return_path);
+ }