X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=8910f54c0c086ebb1cdeaf3f579ac9b514e8f3ec;hb=016c99935cfbd4d320f15037cf00a53589a0615d;hp=36eea571945928da11c1b0db815915fcb2a082b9;hpb=0e05ff68686270d87447c570e28543a5bcc7e755;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index 36eea57194..8910f54c0c 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -40,15 +40,14 @@ function follow_post(App $a) DI::baseUrl()->redirect('contact'); } - $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 // This is just a precaution if maybe this page is called somewhere directly via POST $_SESSION['fastlane'] = $url; - $result = Contact::createFromProbe($uid, $url, true); + $result = Contact::createFromProbe($a->user, $url, true); if ($result['success'] == false) { // Possibly it is a remote item and not an account