instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.57k stars 2.48k forks source link

Adds sanitize to conversation messages #2213

Open pmcneill opened 1 year ago

pmcneill commented 1 year ago

Conversation messages rely on the output-side rendering to escape any malicious HTML. This adds a sanitize_field call to the body property to clean up the saved data and ensure that API-provided messages are safe as well.

Test plan

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.