Browse files

Do not allow HTML in wiki text pages. (It causes problems)

  • Loading branch information...
1 parent 5e4852d commit 10b1b6d59a8673a19499c8fb8b9c1c2b15fd0e24 thepurpleblob committed Aug 26, 2003
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/wiki.php
View
4 lib/wiki.php
@@ -193,6 +193,10 @@ function line_replace( $line ) {
if (IN_MOODLE==1) {
global $CFG;
}
+
+ // convert < and > (kills HTML)
+ $line = str_replace( ">", "&gt;", $line );
+ $line = str_replace( "<", "&lt;", $line );
// ---- (at least) means a <HR>
$line = eregi_replace( "^-{4}.*", "<div class=\"hr\"><hr /></div>", $line );

0 comments on commit 10b1b6d

Please sign in to comment.