]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
missing acl selector after merge
[friendica.git] / mod / follow.php
index 23fad81a89966bdab9e97ee224f153091dff0a31..a1412e6c4e097584b22147a85e03765143d666be 100644 (file)
@@ -12,6 +12,13 @@ function follow_post(&$a) {
 
        $url = $orig_url = notags(trim($_POST['url']));
 
+       if(! allowed_url($url)) {
+               notice( t('Disallowed profile URL.') . EOL);
+               goaway($_SESSION['return_url']);
+               // NOTREACHED
+       }
+
+
        $ret = probe_url($url);