Skip to content

Commit

Permalink
Fix: #2433 - we do not need to cache htmlpurifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Roach committed May 14, 2019
1 parent 296035a commit db7ffad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Services/HtmlService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public function sanitize(string $html): string
{
$config = HTMLPurifier_Config::createDefault();

$config->set('Cache.DefinitionImpl', null);

$config->set('HTML.TidyLevel', 'none'); // Only XSS cleaning now

$def = $config->getHTMLDefinition(true);
Expand Down

0 comments on commit db7ffad

Please sign in to comment.