Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
*.iml
Version-1_MD

7 changes: 4 additions & 3 deletions Controller/Component/ForumSecurityComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ class ForumSecurityComponent extends Component
{
public static function removeScript($content)
{
require "../Plugin/Forum/Core/lib/htmLawed/htmLawed.php";

return htmLawed($content, ['safe' => 1]);
require __DIR__ . "/../../Core/lib/htmlpurifier/library/HTMLPurifier.auto.php";
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
return $purifier->purify($content);
}
}
Loading