Skip to content

Commit

Permalink
Enable Parsedown Safe Mode for XSS protection
Browse files Browse the repository at this point in the history
Fixes #24186
  • Loading branch information
dregad committed Mar 30, 2018
1 parent 518d752 commit a5e043f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/MantisCoreFormatting/core/MantisMarkdown.php
Expand Up @@ -66,6 +66,9 @@ public function __construct() {

# set the table class
$this->table_class = 'table table-nonfluid';

# XSS protection
$this->setSafeMode( true );
}

/**
Expand Down

0 comments on commit a5e043f

Please sign in to comment.