]> git.mxchange.org Git - friendica.git/commitdiff
better handling of twitter follows, remove ajax anchor /#!/
authorFriendika <info@friendika.com>
Sun, 22 May 2011 00:13:51 +0000 (17:13 -0700)
committerFriendika <info@friendika.com>
Sun, 22 May 2011 00:13:51 +0000 (17:13 -0700)
boot.php
mod/follow.php

index 73aa4df6355b402a585b16ec9832fa623c02fca8..0704c2305218013eb49ffe1fee1ae773e34e0895 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
 ini_set('pcre.backtrack_limit', 250000);
 
 
-define ( 'FRIENDIKA_VERSION',      '2.2.986' );
+define ( 'FRIENDIKA_VERSION',      '2.2.987' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1054      );
 
index 5f4ac1df030458730e1b3f3b2a7a3b403ef1efed..6786e9039b5d40eb4ef05165d23c7ef36f244b82 100644 (file)
@@ -12,6 +12,10 @@ function follow_post(&$a) {
 
        $url = $orig_url = notags(trim($_POST['url']));
 
+       // remove ajax junk
+
+       $url = str_replace('/#!/','/',$url);
+
        if(! allowed_url($url)) {
                notice( t('Disallowed profile URL.') . EOL);
                goaway($_SESSION['return_url']);