From a6c425d0c492870e355bfecf0c017131ff1f72ac Mon Sep 17 00:00:00 2001 From: mattab Date: Sun, 12 Jul 2015 20:47:31 +0200 Subject: Do not use INI [proxy] settings when connecting to localhost or 127.0.0.1 fixes #8272 --- core/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Mail.php') 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); } } -- cgit v1.2.3