The first patch general review:
1/ course summary
The trusttext is not correct there, because we are not enforcing the download of files there, so in fact this results in XSS through files there. We have to use "noclean" instead and remove the summarytrust column from database.
If we force download flash stops working immediately, only images work, but there is still serious per penalty because the files can not be cached.
My reasoning in the case of course summary is - for technical reasons you need XSS trust in order to edit activities, so it makes sense to require XSS trust for course editing too.
2/ course_request_summary
XSS through the uploaded files because we are not forcing download - 'moodle/course:request' does not have XSS ==> no files with normal headers
3/ course categories trust - again XSS problem or we need to cripple flash, my +10 to remove trustiest support there and use nucleon
4/ user_profile - flash files will not work here even when user has trustiest because we must be farcing the download, I am afraid this will not work much and will cause confusion
5/ multiple XSS in format_text() + trusstext - it must be used correctly when printing the text too - this is the most important part of security in trusttext design! Using 'noclean' option intstead of 'trusted' is a critical security bug - I already proposed to not support trusttext in course and category descriptions which solves this problem
Just attached calendar.conversion.20091028.patch
It is a complete conversion of calendar from html files, to mforms with the new editor. I also reintroduced the full event hooks that must've been lost from calendar/event.php at some point.
Petr and Martin if you could please review I would be most appreciative.
I am nearly don't on a patch to convert all other core htmleditor uses but hope to get this in first, just to get it out of the way