]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/HTMLPurifier/HTMLPurifier/AttrDef/URI/Host.php
Updated HTMLPurifier to 4.10.0
[quix0rs-gnu-social.git] / extlib / HTMLPurifier / HTMLPurifier / AttrDef / URI / Host.php
index 3b4d186743e22111c0ff609c29a29b941fb75b45..e54a3344a74ffdff81562babdd7a898d4f05e836 100644 (file)
@@ -97,7 +97,7 @@ class HTMLPurifier_AttrDef_URI_Host extends HTMLPurifier_AttrDef
 
         // PHP 5.3 and later support this functionality natively
         if (function_exists('idn_to_ascii')) {
-            $string = idn_to_ascii($string);
+            $string = idn_to_ascii($string, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
 
         // If we have Net_IDNA2 support, we can support IRIs by
         // punycoding them. (This is the most portable thing to do,