diff --git a/ssl/panel/class/m_ssl.php b/ssl/panel/class/m_ssl.php index e2050938..05ceeaca 100644 --- a/ssl/panel/class/m_ssl.php +++ b/ssl/panel/class/m_ssl.php @@ -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";