fix idna conversion for UTF-8, thx to anbrosius (via github)

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-03-11 11:01:30 +01:00
parent 8d7c858931
commit f22a4e2336

View File

@@ -124,7 +124,7 @@ class idna_convert_wrapper
if(strlen($domain) !== 0) if(strlen($domain) !== 0)
{ {
$domain = utf8_decode($this->idna_converter->$action(utf8_encode($domain . '.none'))); $domain = $this->idna_converter->$action($domain . '.none');
$domain = substr($domain, 0, strlen($domain) - 5); $domain = substr($domain, 0, strlen($domain) - 5);
} }