parent
659f3cb7ae
commit
9074904683
|
|
@ -346,7 +346,10 @@ class DomainDnsModal extends ModalComponent
|
||||||
$t = strtoupper($type);
|
$t = strtoupper($type);
|
||||||
if (in_array($t, ['MX','CNAME','SRV'])) $v = rtrim($v, '.');
|
if (in_array($t, ['MX','CNAME','SRV'])) $v = rtrim($v, '.');
|
||||||
if ($t === 'PTR') $v = strtolower(rtrim($v, '.'));
|
if ($t === 'PTR') $v = strtolower(rtrim($v, '.'));
|
||||||
if ($t === 'TLSA') $v = preg_replace('/\s+/', ' ', $v);
|
if ($t === 'TLSA') {
|
||||||
|
$v = preg_replace('/\s+/', '', $v); // Hash-Zeilen zusammenfügen
|
||||||
|
$v = preg_replace('/^([0-3][\s]+[01][\s]+[123])/', '$1 ', $v); // spacing nach Header erzwingen
|
||||||
|
}
|
||||||
return $v;
|
return $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -362,7 +365,7 @@ class DomainDnsModal extends ModalComponent
|
||||||
'PTR' => (bool)preg_match('/\.(in-addr|ip6)\.arpa$/i', $val),
|
'PTR' => (bool)preg_match('/\.(in-addr|ip6)\.arpa$/i', $val),
|
||||||
'MX' => (bool)preg_match('/^\d+\s+[a-z0-9._-]+$/i', $val),
|
'MX' => (bool)preg_match('/^\d+\s+[a-z0-9._-]+$/i', $val),
|
||||||
'SRV' => (bool)preg_match('/^\d+\s+\d+\s+\d+\s+[a-z0-9._-]+$/i', $val),
|
'SRV' => (bool)preg_match('/^\d+\s+\d+\s+\d+\s+[a-z0-9._-]+$/i', $val),
|
||||||
'TLSA' => (bool)preg_match('/^[0-3]\s+[01]\s+[123]\s+[0-9a-f]{32,}$/i', $val),
|
'TLSA' => (bool)preg_match('/^[0-3]\s+[01]\s+[123]\s+[0-9a-f\s]{32,}$/i', $val),
|
||||||
'TXT' => strlen($val) > 0,
|
'TXT' => strlen($val) > 0,
|
||||||
default => true,
|
default => true,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -78,9 +78,7 @@
|
||||||
<div class="rounded-xl border {{ $r['boxClass'] ?? $stateColors['neutral'] }}">
|
<div class="rounded-xl border {{ $r['boxClass'] ?? $stateColors['neutral'] }}">
|
||||||
<div class="flex items-center justify-between px-4 py-2 text-[12px]">
|
<div class="flex items-center justify-between px-4 py-2 text-[12px]">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">
|
<span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">{{ $r['type'] }}</span>
|
||||||
{{ $r['type'] }}
|
|
||||||
</span>
|
|
||||||
<span class="text-slate-200">{{ $r['name'] }}</span>
|
<span class="text-slate-200">{{ $r['name'] }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 text-slate-300/70">
|
<div class="flex items-center gap-2 text-slate-300/70">
|
||||||
|
|
@ -93,9 +91,7 @@
|
||||||
@if($checked && filled(trim($r['actual'] ?? '')) && ($r['state'] ?? '') !== 'ok')
|
@if($checked && filled(trim($r['actual'] ?? '')) && ($r['state'] ?? '') !== 'ok')
|
||||||
<div class="text-[11px] text-white/60 break-words">
|
<div class="text-[11px] text-white/60 break-words">
|
||||||
<span class="opacity-70">Ist:</span>
|
<span class="opacity-70">Ist:</span>
|
||||||
<span class="font-mono break-all">
|
<span class="font-mono break-all">{{ $r['actual'] }}</span>
|
||||||
{{ str_replace('"', '', preg_replace('/\s+/', ' ', trim($r['actual']))) }}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue