From c1c075a69e238dc83c9eee651224a330271a7c43 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Thu, 12 Sep 2024 09:20:00 +0200 Subject: [PATCH] This will never match, so look for a string instead --- src/PHPMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PHPMailer.php b/src/PHPMailer.php index 75b6f75e..9d53b1e1 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -4224,7 +4224,7 @@ class PHPMailer $result = $_SERVER['SERVER_NAME']; } elseif (function_exists('gethostname') && gethostname() !== false) { $result = gethostname(); - } elseif (php_uname('n') !== false) { + } elseif (php_uname('n') !== '') { $result = php_uname('n'); } if (!static::isValidHost($result)) {