summaryrefslogtreecommitdiff
path: root/public/js/render.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-15Linter: Fix all lint errorsPhilip Molares1-17/+17
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-10-22Don't accept sandbox attributeRyotaK1-1/+1
Because sandbox is whitelist attribute, attacker will be able to create iframe that has more permission than default. Signed-off-by: RyotaK <49341894+ry0tak@users.noreply.github.com>
2019-05-31Fix eslint warningsSheogorath1-1/+1
Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-12-28Fix to escape html comment tag [Security Issue]Max Wu1-1/+1
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-11-10Remove the xss library from webpackSheogorath1-2/+5
We can load the xss functions directly from the library instead of loading them through the expose loader of webpack, this should simplify the setup and maybe even improve speed a bit. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-26Update to allow rp tag for rubyMax Wu1-0/+2
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-26Remove manual allow details tag since default already allow itMax Wu1-3/+1
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-25Extend HTML5 support by whitelisting various tagsSheogorath1-1/+11
HTML5 provides a wide feature set of useful elements. Since Markdown usually supports HTML it should be able to use these HTML5 tags as well. As they were requested by some users and they where checked for being safe, whitelisting them isn't a problem. To make the experience the same as on GitHub when it comes to the basic look and feel of the rendered markdown, some CSS was added to make the summary and the details tag look like on GitHub. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2017-11-24Prevent XSS vul by srcdoc in iframeSheogorath1-1/+1
2017-09-27Fix unclosed tags might cause XSS [Security Issue]Wu Cheng-Han1-1/+1
2017-04-11Fix link regex should filter protocol with case insensitive flag [Security ↵Wu Cheng-Han1-1/+1
Issue]
2017-03-22Fix XSS vulnerability in link regex [Security Issue]Wu Cheng-Han1-2/+2
2017-03-22Fix render.js code stylesWu Cheng-Han1-6/+6
2017-03-09Use JavaScript Standard Style (part 2)BoHong Li1-37/+39
Fixed all fail on frontend code.
2017-02-17Update to allow li tag specify value numberWu Cheng-Han1-0/+2
2016-11-26Fix slide might able to add unsafe attribute on section tag which cause XSS ↵Wu Cheng-Han1-0/+1
[Security Issue]
2016-10-29Update to support summary tagWu Cheng-Han1-0/+2
2016-10-10More function expose workaround for reveal-markdown.jsYukai Huang1-0/+1
2016-10-08Resolve dependency module requiringYukai Huang1-1/+5
* es5 style module exports * remove script tag require * webpack config ProvidePlugin Note that this commit only fix JavaScript module loading runtime error.
2016-08-15Update to support data uri in src attribute of image tagWu Cheng-Han1-0/+6
2016-08-14Update XSS policy to allow iframe and link with custom protocolWu Cheng-Han1-10/+19
2016-04-20Update filter XSS to allow attr href starts with '.' or '/'Cheng-Han, Wu1-0/+6
2016-04-20Fix XSS HTML replace might get wrong on the HTML comments in the code tagsCheng-Han, Wu1-0/+4
2016-03-04Fixed filter XSS should allow ordered list specify start numberCheng-Han, Wu1-0/+4
2016-02-22Support kbd tagCheng-Han, Wu1-1/+1
2016-02-16Updated to support html comment tag in XSSCheng-Han, Wu1-1/+2
2016-02-11Updated XSS filter options to allow style tag and style attributeCheng-Han, Wu1-11/+21
2016-02-11Fixed prevent XSS might break lots of tags and only need after renderedCheng-Han, Wu1-0/+13