TheDJ has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/64523


Change subject: Math: Enable MathJax's Safe mode
......................................................................

Math: Enable MathJax's Safe mode

This prevents href and style etc commands to be used
http://docs.mathjax.org/en/latest/safe-mode.html

href and style itself were already blacklisted in texvc config, but
require, classes and CSS ids, were not.

Change-Id: I21d01540e58b8a2fc21d239268be29250e70b6e1
---
M modules/ext.math.mathjax.enabler.js
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/23/64523/1

diff --git a/modules/ext.math.mathjax.enabler.js 
b/modules/ext.math.mathjax.enabler.js
index fe6de6c..2d0290d 100644
--- a/modules/ext.math.mathjax.enabler.js
+++ b/modules/ext.math.mathjax.enabler.js
@@ -13,6 +13,7 @@
 
   mathJax.config = $.extend( true, {
     root: mw.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax',
+    extensions: ['Safe.js'],
     config: ['TeX-AMS-texvc_HTML.js'],
     'v1.0-compatible': false,
     styles: {

-- 
To view, visit https://gerrit.wikimedia.org/r/64523
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I21d01540e58b8a2fc21d239268be29250e70b6e1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to