diff options
author | Mario <mario@mariovavti.com> | 2024-01-03 10:56:03 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-03 10:56:03 +0000 |
commit | d3e5d05026feec42f5836f821982e0cc59d91353 (patch) | |
tree | c491026b2926ca4de0df363435bdc05dbd498cff /vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php | |
parent | 322b619a7122fa812321ceb67016e0b1ce4affb6 (diff) | |
download | volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.tar.gz volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.tar.bz2 volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.zip |
update ezyang/htmlpurifier
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php')
-rw-r--r-- | vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |