Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-07-12 21:47:31 +0300
committermattab <matthieu.aubry@gmail.com>2015-07-12 21:47:31 +0300
commita6c425d0c492870e355bfecf0c017131ff1f72ac (patch)
tree4081be78982bc25abfc541a9ccb1e9e57238a1ec /core/Mail.php
parent2be71d18734c42f96a5b6af9648a71754cf74592 (diff)
Do not use INI [proxy] settings when connecting to localhost or 127.0.0.1
fixes #8272
Diffstat (limited to 'core/Mail.php')
-rw-r--r--core/Mail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Mail.php b/core/Mail.php
index 2c5405cf46..b44e01c341 100644
--- a/core/Mail.php
+++ b/core/Mail.php
@@ -150,6 +150,6 @@ class Mail extends Zend_Mail
*/
protected function isHostDefinedAndNotLocal($url)
{
- return isset($url['host']) && !in_array($url['host'], array('localhost', '127.0.0.1'), true);
+ return isset($url['host']) && !in_array($url['host'], Url::getLocalHostnames(), true);
}
}