From 6acc2c99df89079a54b8becac26841cd8502df7d Mon Sep 17 00:00:00 2001 From: azerttyu Date: Mon, 6 Nov 2017 17:09:03 +0100 Subject: [PATCH] If we add certificate we also remove * complete #207 --- ssl/panel/class/m_ssl.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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";