mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
Merge branch 'master' into feat/rss-feed
This commit is contained in:
commit
f690b6aa01
@ -545,11 +545,30 @@ readonly class RDAPService
|
||||
|
||||
if (isset($rdapEntity['vcardArray']) && !in_array($rdapEntity['handle'], self::IANA_RESERVED_IDS)) {
|
||||
if (empty($entity->getJCard())) {
|
||||
$entity->setJCard($rdapEntity['vcardArray']);
|
||||
if (!array_key_exists('elements', $rdapEntity['vcardArray'])) {
|
||||
$entity->setJCard($rdapEntity['vcardArray']);
|
||||
} else {
|
||||
/*
|
||||
* UZ registry
|
||||
*/
|
||||
$entity->setJCard([
|
||||
'vcard',
|
||||
$rdapEntity['vcardArray']['elements'],
|
||||
]);
|
||||
}
|
||||
} else {
|
||||
$properties = [];
|
||||
foreach ($rdapEntity['vcardArray'][1] as $prop) {
|
||||
$properties[$prop[0]] = $prop;
|
||||
if (!array_key_exists('elements', $rdapEntity['vcardArray'])) {
|
||||
foreach ($rdapEntity['vcardArray'][1] as $prop) {
|
||||
$properties[$prop[0]] = $prop;
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
* UZ registry
|
||||
*/
|
||||
foreach ($rdapEntity['vcardArray']['elements'] as $prop) {
|
||||
$properties[$prop[0]] = $prop;
|
||||
}
|
||||
}
|
||||
foreach ($entity->getJCard()[1] as $prop) {
|
||||
$properties[$prop[0]] = $prop;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user