mirror of
https://github.com/friendica/friendica
synced 2025-05-01 23:04:24 +02:00
Move multiple functions
move multiple smaller functions
This commit is contained in:
parent
cd3643d174
commit
1eb7c19c1e
11 changed files with 24 additions and 56 deletions
|
@ -20,6 +20,7 @@ use Friendica\Protocol\DFRN;
|
|||
use Friendica\Protocol\OStatus;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
use Friendica\Protocol\Salmon;
|
||||
use Friendica\Util\Network;
|
||||
use dba;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
@ -1131,12 +1132,12 @@ class Contact extends BaseObject
|
|||
// remove ajax junk, e.g. Twitter
|
||||
$url = str_replace('/#!/', '/', $url);
|
||||
|
||||
if (!allowed_url($url)) {
|
||||
if (!Network::allowedURL($url)) {
|
||||
$result['message'] = L10n::t('Disallowed profile URL.');
|
||||
return $result;
|
||||
}
|
||||
|
||||
if (blocked_url($url)) {
|
||||
if (Network::blockedURL($url)) {
|
||||
$result['message'] = L10n::t('Blocked domain');
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue