Skip to content
Permalink
Browse files

punicodify URIs in user-supplied content; updates #89

  • Loading branch information...
following5 committed Aug 6, 2015
1 parent b6bdbc4 commit 1639d243690724dd01a9d43b5bc59949dd5542f2
Showing with 4 additions and 0 deletions.
  1. +4 −0 htdocs/lib2/OcHTMLPurifier.class.php
@@ -6,6 +6,7 @@
***************************************************************************/
require_once(__DIR__ . '/HTMLPurifier/library/HTMLPurifier.auto.php');
require_once('Net/IDNA2.php');
// !! THIS CODE IS ALSO USED IN OKAPI !!
@@ -29,6 +30,9 @@ function __construct($opt)
// set cache directory
$config->set('Cache.SerializerPath', $opt['html_purifier']['cache_path']);
// adjust URI filtering to fix issue #89 (enable special chars in URIs)
$config->set('Core.EnableIDNA', true);
// create parent object with config
parent::__construct($config);
}

0 comments on commit 1639d24

Please sign in to comment.
You can’t perform that action at this time.