]> git.mjollnir.org Git - moodle.git/commit
OK, I've rationalised the text formatting now. Basically, both Moodle and
authormoodler <moodler>
Fri, 18 Oct 2002 09:09:19 +0000 (09:09 +0000)
committermoodler <moodler>
Fri, 18 Oct 2002 09:09:19 +0000 (09:09 +0000)
commit3fe3851d57edb91865702ff7d90c1e1d3f6f2b03
treed614bd67baef9b1c134f0cd829671eb23c93a197
parenta0bac19d81e04081cb2409110eb538adf3998c36
OK, I've rationalised the text formatting now.  Basically, both Moodle and
HTML text allow the same range of HTML tags (so it doesn't matter is you
switch from one to the other).

<IMG> and <A> are now ALLOWED in Moodle text.  However, the clean_text
function now checks for and removes any embedded javascript triggers
to avoid cross-site scripting attacks that way.

clean_text() should be called on ANY text that comes in from students.
lib/weblib.php