David Mehren f552b14e11
Sanitize username and photo URL
HedgeDoc displays the username and user photo at various places
by rendering the respective variables into an `ejs` template.
As the values are user-provided or generated from user-provided data,
it may be possible to inject unwanted HTML.

This commit sanitizes the username and photo URL by passing them
through the `xss` library.

Co-authored-by: Christoph (Sheogorath) Kern <sheogorath@shivering-isles.com>
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-09 19:28:44 +02:00
..
2020-12-02 19:39:06 +01:00
2021-05-09 19:28:44 +02:00
2018-11-13 23:30:13 +01:00
2021-02-15 12:15:14 +01:00
2021-02-15 12:15:14 +01:00
2021-02-15 12:15:14 +01:00
2019-05-31 00:30:29 +02:00
2021-04-25 20:06:56 +02:00
2021-02-15 12:15:14 +01:00
2021-02-15 12:15:14 +01:00