Explorar el Código

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

Jessica Lawshe hace 8 años
padre
commit
49cf2a8dee
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      services/web/public/coffee/directives/mathjax.coffee

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

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