Przeglądaj źródła

Use the MathJax `Safe.js` extension to prevent XSS

Jessica Lawshe 8 lat temu
rodzic
commit
49cf2a8dee

+ 1 - 0
services/web/public/coffee/directives/mathjax.coffee

@@ -2,6 +2,7 @@ define [
 	"base"
 ], (App) ->
 	mathjaxConfig =
+		extensions: ["Safe.js"]
 		messageStyle: "none"
 		imageFont:null
 		"HTML-CSS": { availableFonts: ["TeX"] },