]> git.mxchange.org Git - friendica.git/commitdiff
follow requests most adhere to site allow policy
authorFriendika <info@friendika.com>
Tue, 19 Apr 2011 23:31:39 +0000 (16:31 -0700)
committerFriendika <info@friendika.com>
Tue, 19 Apr 2011 23:31:39 +0000 (16:31 -0700)
boot.php
mod/follow.php

index 763dfc3fe80fd9264aaafeafef95a2342ee427cf..1dd5394341d69b0fd952869a94586ca82457e06b 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2,7 +2,7 @@
 
 set_time_limit(0);
 
-define ( 'FRIENDIKA_VERSION',      '2.1.953' );
+define ( 'FRIENDIKA_VERSION',      '2.1.954' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1053      );
 
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);