mirror of
https://github.com/friendica/friendica
synced 2025-05-02 04:24:22 +02:00
Merge pull request #10323 from annando/issue-10306
Issue 10306: Improve local delivery
This commit is contained in:
commit
8c99d3acc1
8 changed files with 130 additions and 100 deletions
|
@ -548,4 +548,15 @@ class Network
|
|||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given URL is a local link
|
||||
*
|
||||
* @param string $url
|
||||
* @return bool
|
||||
*/
|
||||
public static function isLocalLink(string $url)
|
||||
{
|
||||
return (strpos(Strings::normaliseLink($url), Strings::normaliseLink(DI::baseUrl())) !== false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue