Florian Schaal
2015-07-30 71a8ee0daf5c7d6b57522a4a72123f1b224f88ad
interface/lib/classes/functions.inc.php
@@ -301,7 +301,7 @@
      if($encode == true) {
         if(function_exists('idn_to_ascii')) {
            $domain = idn_to_ascii($domain);
            $domain = idn_to_ascii($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
         } elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) {
            /* use idna class:
                 * @author  Matthias Sommerfeld <mso@phlylabs.de>
@@ -318,7 +318,7 @@
         }
      } else {
         if(function_exists('idn_to_utf8')) {
            $domain = idn_to_utf8($domain);
            $domain = idn_to_utf8($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
         } elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) {
            /* use idna class:
                 * @author  Matthias Sommerfeld <mso@phlylabs.de>