Does grade_update() clean or escape input for the feedback field?

Does grade_update() clean or escape input for the feedback field?

от Matt Bury -
Количество ответов: 0
Изображение пользователя Plugin developers
Hi,

I'm using lib/gradelib.php::update_grade() to push grades into Moodle's grade book. The grades are being sent from Flash including the 'feedback' parameter.

My question is, is the text in 'feedback' escaped or cleaned or do I have to call a text cleaning function manually?

So far it works and links get automatically added in str_feedback output but I'm concerned about security.

Thanks in advance.