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
path: root/config
diff options
context:
space:
mode:
authorbarbushin <barbushin@gmail.com>2015-07-22 17:49:02 +0300
committerbarbushin <barbushin@gmail.com>2015-07-22 17:49:02 +0300
commit9e6c2a652696dbd0d160c9545ebf66037297abfd (patch)
treedf07fefc9289a416c3b66f2f244369255fd19748 /config
parent57f273092bf68bd8ecfe1cbaca314642be446e70 (diff)
Fix emails validation with unknown TLD
Diffstat (limited to 'config')
-rw-r--r--config/global.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/global.php b/config/global.php
index a8de8112d7..f8a04235b7 100644
--- a/config/global.php
+++ b/config/global.php
@@ -66,4 +66,10 @@ return array(
'Piwik\EventDispatcher' => DI\object()->constructorParameter('observers', DI\get('observers.global')),
+ 'Zend_Validate_EmailAddress' => function () {
+ return new \Zend_Validate_EmailAddress(array(
+ 'hostname' => new \Zend_Validate_Hostname(array(
+ 'tld' => false,
+ ))));
+ },
);