follow requests most adhere to site allow policy

This commit is contained in:
Friendika 2011-04-19 16:31:39 -07:00
commit 29a48de5e2
2 changed files with 8 additions and 1 deletions

View file

@ -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);