From 10b1b6d59a8673a19499c8fb8b9c1c2b15fd0e24 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 26 Aug 2003 11:59:32 +0000 Subject: [PATCH] Do not allow HTML in wiki text pages. (It causes problems) --- lib/wiki.php | 4 ++++ 1 file changed, 4 insertions(+) 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
$line = eregi_replace( "^-{4}.*", "

", $line ); -- 2.39.5