aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-21 17:13:51 -0700
committerFriendika <info@friendika.com>2011-05-21 17:13:51 -0700
commit0dfcbe9c44f38c717f8a4ff2516153ce9240306f (patch)
tree51809251722c858c8cda870d9c43268ecc78d342 /mod
parentbc2297d933cd1aab24321f723ef5485e584df156 (diff)
downloadvolse-hubzilla-0dfcbe9c44f38c717f8a4ff2516153ce9240306f.tar.gz
volse-hubzilla-0dfcbe9c44f38c717f8a4ff2516153ce9240306f.tar.bz2
volse-hubzilla-0dfcbe9c44f38c717f8a4ff2516153ce9240306f.zip
better handling of twitter follows, remove ajax anchor /#!/
Diffstat (limited to 'mod')
-rw-r--r--mod/follow.php4
1 files changed, 4 insertions, 0 deletions
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']);