Skip to content

Commit

Permalink
Make note of possible XSS in Rustdoc
Browse files Browse the repository at this point in the history
Fixes #24160
  • Loading branch information
steveklabnik committed Apr 16, 2015
1 parent 5576b05 commit 5148e90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/doc/trpl/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,12 @@ This sets a few different options, with a logo, favicon, and a root URL.
- `--html-before-content FILE`: includes the contents of FILE directly after
`<body>`, before the rendered content (including the search bar).
- `--html-after-content FILE`: includes the contents of FILE after all the rendered content.

## Security note

The Markdown in documentation comments is placed without processing into
the final webpage. Be careful with literal HTML:

```rust
/// <script>alert(document.cookie)</script>
```

0 comments on commit 5148e90

Please sign in to comment.