summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-31 04:14:04 +0200
committerGitHub <noreply@github.com>2020-07-30 22:14:04 -0400
commit11dcc177637a234fd624db5d766746dea992bcd4 (patch)
tree457c6a6be21298c41c23761356a036d41d4f6767 /package.json
parent24f86257900866ced5aa6b470d05f6d9f1a82de0 (diff)
downloadgitea-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.json1
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",