Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
Remove unencoded script tags from Markdown text
  • Loading branch information
panicsteve authored Apr 12, 2021
1 parent 8f1d047 commit 3cdc651
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ function toHTML($inText)
{
global $page;

$inText = preg_replace("/<[\/]*script>/", "", $inText);

$dir = opendir(PAGES_PATH);
while ( $filename = readdir($dir) )
{
Expand Down

0 comments on commit 3cdc651

Please sign in to comment.