Commits

Dietmar Winkler  committed 70d7291

Load MathJax via `https` protocoll

Depending on the deployment the Trac site that uses this plugin might
actually be serving via `https`. This means that loading MathJax via
`http` leads to a unsecure mixed content warning. Hence it is better to
load the `MathJax.js` always via `https`.

  • Participants
  • Parent commits 7f4e313
  • Tags 0.3

Comments (0)

Files changed (1)

File tracmathjax/tracmathjax.py

 
     # ITemplateStreamFilter methods
     def filter_stream(self, req, method, filename, stream, data):
-        address = tag.script(type="text/javascript", src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML")
+        address = tag.script(type="text/javascript", src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML")
         stream |= Transformer('.//head').append(address)
         return stream