From: Friendika Date: Sun, 22 May 2011 00:13:51 +0000 (-0700) Subject: better handling of twitter follows, remove ajax anchor /#!/ X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dfcbe9c44f38c717f8a4ff2516153ce9240306f;p=friendica.git better handling of twitter follows, remove ajax anchor /#!/ --- diff --git a/boot.php b/boot.php index 73aa4df635..0704c23052 100644 --- 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 ); diff --git a/mod/follow.php b/mod/follow.php index 5f4ac1df03..6786e9039b 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -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']);