better handling of twitter follows, remove ajax anchor /#!/
This commit is contained in:
parent
bc2297d933
commit
0dfcbe9c44
2 changed files with 5 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue