Adding security::remove_XSS

skala
Julio Montoya 15 years ago
parent 23054bb5b2
commit 91089a55e6
  1. 4
      main/inc/lib/course_description.lib.php

@ -40,9 +40,9 @@ class CourseDescription
if ($description['description_type'] == THEMATIC_ADVANCE) {
$description['progress_icon'] = $this->get_progress_porcent();
}
$data['descriptions'][$description['description_type']] = $description;
$data['descriptions'][$description['description_type']] = Security::remove_XSS($description, STUDENT);
//reload titles to ensure we have the last version (after edition)
$data['default_description_titles'][$description['description_type']] = $description['title'];
$data['default_description_titles'][$description['description_type']] = Security::remove_XSS($description['title'], STUDENT);
}
return $data;
}

Loading…
Cancel
Save