From d3e5d05026feec42f5836f821982e0cc59d91353 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 3 Jan 2024 10:56:03 +0000 Subject: update ezyang/htmlpurifier --- vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php') diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php index 1beeaa5d2..ddc5dfbea 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php @@ -106,7 +106,7 @@ class HTMLPurifier_AttrDef_URI_Host extends HTMLPurifier_AttrDef // If we have Net_IDNA2 support, we can support IRIs by // punycoding them. (This is the most portable thing to do, // since otherwise we have to assume browsers support - } elseif ($config->get('Core.EnableIDNA')) { + } elseif ($config->get('Core.EnableIDNA') && class_exists('Net_IDNA2')) { $idna = new Net_IDNA2(array('encoding' => 'utf8', 'overlong' => false, 'strict' => true)); // we need to encode each period separately $parts = explode('.', $string); -- cgit v1.2.3