mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:50:10 +00:00
Added check_domain_blocklist
This commit is contained in:
parent
7d9d22914f
commit
c7e1a8e871
3 changed files with 51 additions and 8 deletions
|
@ -514,6 +514,11 @@ function dfrn_request_post(App $a) {
|
|||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
if (! check_domain_blocklist($url)) {
|
||||
notice( t('Blocked domain') . EOL);
|
||||
goaway(App::get_baseurl() . '/' . $a->cmd);
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue