diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-07-12 21:47:31 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-07-12 21:47:31 +0300 |
commit | a6c425d0c492870e355bfecf0c017131ff1f72ac (patch) | |
tree | 4081be78982bc25abfc541a9ccb1e9e57238a1ec /core/Mail.php | |
parent | 2be71d18734c42f96a5b6af9648a71754cf74592 (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.php | 2 |
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); } } |