Use FQDN for SMTP EHLO/HELO command. (Bug #41025)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9387 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-03-17 15:23:57 +00:00
parent 7a23115600
commit a80f7a5ea1
3 changed files with 3 additions and 2 deletions

View file

@ -123,6 +123,7 @@
<li>[Fix] Deleting private message attachments could delete post attachments. (Bug #42815)</li> <li>[Fix] Deleting private message attachments could delete post attachments. (Bug #42815)</li>
<li>[Fix] Do not suppress PHP notices/errors in language packs if DEBUG_EXTRA mode enabled. (Bug #41485)</li> <li>[Fix] Do not suppress PHP notices/errors in language packs if DEBUG_EXTRA mode enabled. (Bug #41485)</li>
<li>[Fix] Flash files do not display anymore after update to flash player 10 (Bug #41315)</li> <li>[Fix] Flash files do not display anymore after update to flash player 10 (Bug #41315)</li>
<li>[Fix] Use FQDN for SMTP EHLO/HELO command. (Bug #41025)</li>
<li>[Change] Allow download of conflicting file for later reference in automatic updater</li> <li>[Change] Allow download of conflicting file for later reference in automatic updater</li>
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li> <li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li> <li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>

View file

@ -1073,7 +1073,7 @@ class smtp_class
global $user; global $user;
$err_msg = ''; $err_msg = '';
$local_host = (function_exists('php_uname')) ? php_uname('n') : $user->host; $local_host = (function_exists('php_uname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : $user->host;
// If we are authenticating through pop-before-smtp, we // If we are authenticating through pop-before-smtp, we
// have to login ones before we get authenticated // have to login ones before we get authenticated

View file

@ -182,7 +182,7 @@ class session
else else
{ {
// Set to OS hostname or localhost // Set to OS hostname or localhost
$host = (function_exists('php_uname')) ? php_uname('n') : 'localhost'; $host = (function_exists('php_uname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : 'localhost';
} }
} }