Comment 0 for bug 1355572

Revision history for this message
Simon Coggins (simon-coggins) wrote :

There are a few places which do this:

if (strpos($jsfile, 'http://' === false)) { ...

when they should do this:

if (stripos($jsfile, 'http://' === false) && stripos($jsfile, 'http://' === false)) { ...

the problem only reveals itself on https sites where the wwwroot is in a subdirectory such as https://mysite/mahara/.

The result is that the URL to include files is wrong so the files aren't loaded.