diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-09-22 15:09:09 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-09-22 15:09:09 +0000 |
commit | 782d680b540b3aebb65d50b4063d1b10a9c76365 (patch) | |
tree | a508d2df12b0ecaf7b3fe7b2afd5b029ed05944e /phpBB/includes/session.php | |
parent | 90e11876019b063000843c424052d96524caa5a9 (diff) | |
download | forums-782d680b540b3aebb65d50b4063d1b10a9c76365.tar forums-782d680b540b3aebb65d50b4063d1b10a9c76365.tar.gz forums-782d680b540b3aebb65d50b4063d1b10a9c76365.tar.bz2 forums-782d680b540b3aebb65d50b4063d1b10a9c76365.tar.xz forums-782d680b540b3aebb65d50b4063d1b10a9c76365.zip |
Fix getting host for situations where the name/IP is not resolvable. Related to Bug #41025
Related revisions: r9387 and r10158
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10178 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r-- | phpBB/includes/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index d8362d5089..bf41fea7de 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -182,7 +182,7 @@ class session else { // Set to OS hostname or localhost - $host = (function_exists('php_uname') && function_exists('gethostbyaddr') && function_exists('gethostbyname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : 'localhost'; + $host = (function_exists('php_uname')) ? php_uname('n') : 'localhost'; } } |