mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/17383] Fix HELO/EHLO error in email messenger on PHP8
PHPBB-17383
This commit is contained in:
parent
9d64579dea
commit
6d0a965db2
1 changed files with 1 additions and 1 deletions
|
@ -1428,7 +1428,7 @@ class smtp_class
|
||||||
if (($addr = @gethostbyname($local_host)) !== $local_host)
|
if (($addr = @gethostbyname($local_host)) !== $local_host)
|
||||||
{
|
{
|
||||||
// Able to resolve IP back to name
|
// Able to resolve IP back to name
|
||||||
if (($name = @gethostbyaddr($addr)) !== $addr)
|
if (!empty($name = @gethostbyaddr($addr)) && $name !== $addr)
|
||||||
{
|
{
|
||||||
$local_host = $name;
|
$local_host = $name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue