use IdnaConvert from composer

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-18 10:40:16 +01:00
parent 4c27efa4ae
commit c9ee2ae7e0
28 changed files with 231 additions and 7767 deletions

View File

@@ -57,8 +57,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
// validation
if (substr($domain, 0, 4) != 'xn--') {
// @fixme idna
$idna_convert = new \idna_convert_wrapper();
$idna_convert = new \Froxlor\Idna\IdnaWrapper();
$domain = $idna_convert->encode(validate($domain, 'domain', '', '', array(), true));
}