core/Url.php: getCurrentHost() should fallback to SERVER_ADDR #3108

Closed
robocoder opened this Issue Apr 13, 2012 · 1 comment

1 participant

@robocoder

If the request doesn't contain a Host: header, we should probably default to the server's IP address,
$_SERVER['SERVER_ADDR']
instead of unknown

Investigate impact.

@robocoder

(In [6208]) fixes #3108 - fallback to SERVER_ADDR if HTTP_HOST not defined

@robocoder robocoder added this to the 1.x - Piwik 1.x milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment