follow requests most adhere to site allow policy
This commit is contained in:
parent
a0179235d2
commit
29a48de5e2
2 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue