diff options
author | silverwind <me@silverwind.io> | 2020-07-31 04:14:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 22:14:04 -0400 |
commit | 11dcc177637a234fd624db5d766746dea992bcd4 (patch) | |
tree | 457c6a6be21298c41c23761356a036d41d4f6767 /package.json | |
parent | 24f86257900866ced5aa6b470d05f6d9f1a82de0 (diff) | |
download | gitea-11dcc177637a234fd624db5d766746dea992bcd4.tar.gz gitea-11dcc177637a234fd624db5d766746dea992bcd4.zip |
Improve HTML escaping helper (#12383)
The previous method did not escape single quotes which under some
circumstances can lead to XSS vulnerabilites and the fact that it
depends on jQuery is also not ideal. Replace it with a lightweight
module.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json index 3597ed6a5a..d2980e9303 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "css-loader": "4.0.0", "cssnano-webpack-plugin": "1.0.3", "dropzone": "5.7.2", + "escape-goat": "3.0.0", "fast-glob": "3.2.4", "file-loader": "6.0.0", "fomantic-ui": "2.8.6", |