Просмотр исходного кода

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

Jessica Lawshe 8 лет назад
Родитель
Сommit
49cf2a8dee
1 измененных файлов с 1 добавлено и 0 удалено
  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"
 ], (App) ->
 	mathjaxConfig =
+		extensions: ["Safe.js"]
 		messageStyle: "none"
 		imageFont:null
 		"HTML-CSS": { availableFonts: ["TeX"] },