Dietmar Winkler avatar 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`.

Comments (0)

Files changed (1)

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
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.