From: Tim Düsterhus Date: Thu, 9 Jun 2022 07:26:12 +0000 (+0200) Subject: Stop specifying `Core.EnableIDNA` for HTMLPurifier X-Git-Tag: 6.0.0_Alpha_1~1190^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39322a052ef2b6ece70d7c52ee0476409bae35d1;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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();