t3lib_div::getHostname used $_SERVER instead of t3lib_div::getIndpEnv()
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 16 Jul 2007 12:28:45 +0000 (12:28 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 16 Jul 2007 12:28:45 +0000 (12:28 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2420 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 6ac93b5..2104602 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 2007-07-16  Martin Kutschker  <martin.t.kutschker@blackbox.net>
 
        * Fixed bug #3834: possible abuse of t3lib_formmail
+       * t3lib_div::getHostname() used $_SERVER instead of t3lib_div::getIndpEnv()
 
 2007-07-14  Oliver Hader  <oh@inpublica.de>
 
index 10759f3..5ca1738 100755 (executable)
@@ -3285,7 +3285,7 @@ class t3lib_div {
        function getHostname($requestHost=TRUE) {
                $host = '';
                if ($requestHost && (!defined('TYPO3_cliMode') || !TYPO3_cliMode))      {
-                       $host = $_SERVER['HTTP_HOST'];
+                       $host = t3lib_div::getIndpEnv('HTTP_HOST');
                }
                if (!$host)     {
                                // will fail for PHP 4.1 and 4.2