better handling of twitter follows, remove ajax anchor /#!/
This commit is contained in:
parent
bc2297d933
commit
0dfcbe9c44
2
boot.php
2
boot.php
|
@ -4,7 +4,7 @@ set_time_limit(0);
|
||||||
ini_set('pcre.backtrack_limit', 250000);
|
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 ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1054 );
|
define ( 'DB_UPDATE_VERSION', 1054 );
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,10 @@ function follow_post(&$a) {
|
||||||
|
|
||||||
$url = $orig_url = notags(trim($_POST['url']));
|
$url = $orig_url = notags(trim($_POST['url']));
|
||||||
|
|
||||||
|
// remove ajax junk
|
||||||
|
|
||||||
|
$url = str_replace('/#!/','/',$url);
|
||||||
|
|
||||||
if(! allowed_url($url)) {
|
if(! allowed_url($url)) {
|
||||||
notice( t('Disallowed profile URL.') . EOL);
|
notice( t('Disallowed profile URL.') . EOL);
|
||||||
goaway($_SESSION['return_url']);
|
goaway($_SESSION['return_url']);
|
||||||
|
|
Loading…
Reference in a new issue