Modify

Opened 4 years ago

Closed 4 years ago

#14026 closed defect (fixed)

MarkdownMacro renders unsafe content

Reported by: Cinc-th Owned by: Cinc-th
Priority: highest Component: MarkdownMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

The MarkdownMacro currently renders unsafe HTML. The following example excutes the contained javascript code.

{{{#!Markdown
# Markdown header

<script>
  alert('Gotcha!');
</script>

}}}

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Cinc-th

Resolution: fixed
Status: assignedclosed

In 18325:

MarkdownMacro: don't render unsafe html like <script> unless enabled by config render_unsafe_content. While at it remove unused code and refactor slightly. Fixed a potential bug in MarkdownFormatter component.

Closes #14026

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.