mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Simplify implementation
This commit is contained in:
parent
8c3530ee60
commit
7f690a1048
1 changed files with 0 additions and 11 deletions
|
|
@ -73,13 +73,7 @@ class DNS extends Validator
|
|||
return false;
|
||||
}
|
||||
|
||||
$caaCount = 0;
|
||||
|
||||
foreach ($query as $record) {
|
||||
if ($record->getTypeName() === self::RECORD_CAA) {
|
||||
$caaCount++;
|
||||
}
|
||||
|
||||
// CAA validation only needs to ensure domain
|
||||
if ($this->type === self::RECORD_CAA) {
|
||||
// Extract domain; comments showcase extraction steps in most complex scenario
|
||||
|
|
@ -98,11 +92,6 @@ class DNS extends Validator
|
|||
}
|
||||
}
|
||||
|
||||
if ($this->type === self::RECORD_CAA && $caaCount === 0) {
|
||||
// No CAA records, means anyone can issue certificate
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue