Merge branch 'master' into develop

This commit is contained in:
Simon Vieille 2023-11-03 13:41:03 +01:00
commit 53be613099
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 0af396b41a5dc159e31689812bdbdd0203394cfd
Subproject commit 3935a6d0ac8239bde3207d2a39681db0e6d517d4

View file

@ -104,8 +104,8 @@ EOF
]);
$process->run();
$whois = $process->getOutput();
$parser = new Parser($whois);
$content = $process->getOutput();
$parser = new Parser($content);
$expiryDate = $parser->getExpiryDate();
if ($expiryDate) {

View file

@ -31,7 +31,7 @@ class SslCertParser
*/
public function getExpiryDate(): ? \DateTime
{
preg_match('/days=([^;]+);/', $this->check, $match);
preg_match('/expires in ([^\s]+)\s+/', $this->check, $match);
if (isset($match[1])) {
$days = (int) $match[1];