If we add certificate we also remove

* complete #207
This commit is contained in:
azerttyu 2017-11-06 17:09:03 +01:00
parent 1ec4ff28d6
commit 6acc2c99df
1 changed files with 5 additions and 1 deletions

View File

@ -527,7 +527,11 @@ class m_ssl {
$found = true;
break;
}
$offset = strpos($fqdn, ".", $offset);
$offset = strpos($fqdn, ".", $offset+1);
//No more dot, we prevent an infinite loop
if (!$offset) {
break;
}
} while (true);
if (!$found) {
echo "FATAL: didn't found fqdn $fqdn in sub_domaines table !\n";