From 0dfcbe9c44f38c717f8a4ff2516153ce9240306f Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 21 May 2011 17:13:51 -0700 Subject: better handling of twitter follows, remove ajax anchor /#!/ --- mod/follow.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod') diff --git a/mod/follow.php b/mod/follow.php index 5f4ac1df0..6786e9039 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']); -- cgit v1.2.3