Fixed bug #8239: Wrong parameter order for strpos in t3lib_div::getHostname
authorOliver Hader <oliver.hader@typo3.org>
Fri, 13 Jun 2008 17:19:36 +0000 (17:19 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 13 Jun 2008 17:19:36 +0000 (17:19 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3821 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 1b6a64a..4a1bf04 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-13  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #8239: Wrong parameter order for strpos in t3lib_div::getHostname
+
 2008-06-11  Ingo Renner  <ingo@typo3.org>
 
        * Fixed bug #8571: Moving backend search to the right
index e95a083..661f1d8 100755 (executable)
@@ -3657,7 +3657,7 @@ final class t3lib_div {
                        if (strpos($host, ' ')) $host = '';
                }
                        // we have not found a FQDN yet
-               if ($host && strpos('.',$host) === FALSE)       {
+               if ($host && strpos($host, '.') === false) {
                        $ip = gethostbyname($host);
                                // we got an IP address
                        if ($ip != $host)       {