From: thepurpleblob <thepurpleblob> Date: Tue, 26 Aug 2003 11:59:32 +0000 (+0000) Subject: Do not allow HTML in wiki text pages. (It causes problems) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=10b1b6d59a8673a19499c8fb8b9c1c2b15fd0e24;p=moodle.git Do not allow HTML in wiki text pages. (It causes problems) --- diff --git a/lib/wiki.php b/lib/wiki.php index 076034a83f..c628388038 100644 --- a/lib/wiki.php +++ b/lib/wiki.php @@ -193,6 +193,10 @@ class Wiki { if (IN_MOODLE==1) { global $CFG; } + + // convert < and > (kills HTML) + $line = str_replace( ">", ">", $line ); + $line = str_replace( "<", "<", $line ); // ---- (at least) means a <HR> $line = eregi_replace( "^-{4}.*", "<div class=\"hr\"><hr /></div>", $line );