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:
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);
}
}