diff options
author | barbushin <barbushin@gmail.com> | 2015-07-22 17:49:02 +0300 |
---|---|---|
committer | barbushin <barbushin@gmail.com> | 2015-07-22 17:49:02 +0300 |
commit | 9e6c2a652696dbd0d160c9545ebf66037297abfd (patch) | |
tree | df07fefc9289a416c3b66f2f244369255fd19748 /config | |
parent | 57f273092bf68bd8ecfe1cbaca314642be446e70 (diff) |
Fix emails validation with unknown TLD
Diffstat (limited to 'config')
-rw-r--r-- | config/global.php | 6 |
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, + )))); + }, ); |