Skip to content
Permalink
Browse files
remove xss in kb comments
  • Loading branch information
orthagh authored and trasher committed May 5, 2020
1 parent 9f1117d commit 01189af2c1d64753719eafae15bb35f20cea759b
Showing 1 changed file with 2 additions and 12 deletions.
@@ -82,15 +82,7 @@ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtem
* @param $withtemplate integer withtemplate param (default 0)
**/
static function showForItem(CommonDBTM $item, $withtemplate = 0) {
global $DB, $CFG_GLPI;

$item_id = $item->getID();
$item_type = $item::getType();
if (isset($_GET["start"])) {
$start = intval($_GET["start"]);
} else {
$start = 0;
}
global $CFG_GLPI;

// Total Number of comments
if ($item->getType() == KnowbaseItem::getType()) {
@@ -309,9 +301,7 @@ static public function displayComments($comments, $cancomment, $level = 0) {
}

$html .= "<div class='item_content'>";
$html .= "<p>";
$html .= Toolbox::unclean_cross_side_scripting_deep($comment['comment']);
$html .= "</p>";
$html .= "<p>{$comment['comment']}</p>";
$html .= "</div>";
$html .= "</div>"; // displayed_content

0 comments on commit 01189af

Please sign in to comment.