Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not allow HTML in wiki text pages. (It causes problems)
  • Loading branch information
thepurpleblob committed Aug 26, 2003
1 parent 5e4852d commit 10b1b6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wiki.php
Expand Up @@ -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 );
Expand Down

0 comments on commit 10b1b6d

Please sign in to comment.