Stop specifying `Core.EnableIDNA` for HTMLPurifier
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 9 Jun 2022 07:26:12 +0000 (09:26 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 9 Jun 2022 07:26:12 +0000 (09:26 +0200)
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.

wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php

index 2f365ce0a5af2518ec6b1a79315b4e8f88d8787b..f5be0fc130ce0c066b7576a19af298d57b26558c 100644 (file)
@@ -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();