mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Issue 10747: Improved check for blocked domains
This commit is contained in:
parent
ac49a02c36
commit
f1e2ceb32c
2 changed files with 12 additions and 1 deletions
|
@ -119,7 +119,8 @@ class APContact
|
|||
*/
|
||||
public static function getByURL($url, $update = null)
|
||||
{
|
||||
if (empty($url)) {
|
||||
if (empty($url) || Network::isUrlBlocked($url)) {
|
||||
Logger::info('Domain is blocked', ['url' => $url]);
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue