X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=58419dfd3ba54836f144ae3b3ff2d3148df98c50;hb=010ec99b35c2bee8f23060e96c2af3ba5849cf84;hp=e1d8b0ea7d8aa22f379983e0c8e1898ebca89b4f;hpb=2fb1819e572a64c9d308fc2913411986f4b04df7;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index e1d8b0ea7d..58419dfd3b 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\App; use Friendica\Core\Protocol; use Friendica\Core\Renderer; @@ -24,7 +41,7 @@ function follow_post(App $a) } $uid = local_user(); - $url = Strings::escapeTags(trim($_REQUEST['url'])); + $url = Probe::cleanURI($_REQUEST['url']); $return_path = 'follow?url=' . urlencode($url); // Makes the connection request for friendica contacts easier @@ -177,7 +194,7 @@ function follow_content(App $a) '$myaddr' => $myaddr, '$keywords' => $r[0]['keywords'], - '$does_know_you' => ['knowyou', DI::l10n()->t('Does %s know you?', $ret['name'])], + '$does_know_you' => ['knowyou', DI::l10n()->t('%s knows you', $ret['name'])], '$addnote_field' => ['dfrn-request-message', DI::l10n()->t('Add a personal note:')], ]);