Skip to content

Conversation

@QuietMisdreavus
Copy link
Contributor

Currently, when we render README files for viewing, we leave the output HTML untouched. However, this can lead to some malicious (or at least obstructive) files including javascript: or data: URLs which can create security risks.

There's an option in comrak's Markdown renderer to strip out all raw HTML elements and javascript:/data: URLs when it renders Markdown, so this PR sets that option when rendering README files.

@onur onur merged commit d993b18 into rust-lang:master Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants