follow requests most adhere to site allow policy
This commit is contained in:
parent
a0179235d2
commit
29a48de5e2
2
boot.php
2
boot.php
|
@ -2,7 +2,7 @@
|
|||
|
||||
set_time_limit(0);
|
||||
|
||||
define ( 'FRIENDIKA_VERSION', '2.1.953' );
|
||||
define ( 'FRIENDIKA_VERSION', '2.1.954' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||
define ( 'DB_UPDATE_VERSION', 1053 );
|
||||
|
||||
|
|
|
@ -12,6 +12,13 @@ function follow_post(&$a) {
|
|||
|
||||
$url = $orig_url = notags(trim($_POST['url']));
|
||||
|
||||
if(! allowed_url($url)) {
|
||||
notice( t('Disallowed profile URL.') . EOL);
|
||||
goaway($_SESSION['return_url']);
|
||||
// NOTREACHED
|
||||
}
|
||||
|
||||
|
||||
$ret = probe_url($url);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue