From 39322a052ef2b6ece70d7c52ee0476409bae35d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 9 Jun 2022 09:26:12 +0200 Subject: [PATCH] Stop specifying `Core.EnableIDNA` for HTMLPurifier HTMLPurifier will automatically use `idn_to_ascii()` if available, no matter the configuration option. Since b2d27c999504f61f3e7fadee6eb0e0b5e389eed2 we polyfill this function, making the option entirely obsolete. --- .../system/html/input/filter/MessageHtmlInputFilter.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php index 2f365ce0a5..f5be0fc130 100644 --- a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php +++ b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php @@ -64,9 +64,6 @@ class MessageHtmlInputFilter implements IHtmlInputFilter $this->setAttributeDefinitions($config); - // enable IDN support, requires PEAR Net_IDNA2 - $config->set('Core.EnableIDNA', true); - // enable finalization again, mimics the default behavior $config->autoFinalize = true; $config->finalize(); -- 2.20.1