Commit a58f8f22 authored by Alex Sexton's avatar Alex Sexton

Forces lower case comparison of protocol and host when determining whether the...

Forces lower case comparison of protocol and host when determining whether the request is remote or local. Fixes #6908
parent 4fcfee43
...@@ -287,7 +287,7 @@ jQuery.extend({ ...@@ -287,7 +287,7 @@ jQuery.extend({
// Matches an absolute URL, and saves the domain // Matches an absolute URL, and saves the domain
var parts = rurl.exec( s.url ), var parts = rurl.exec( s.url ),
remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host); remote = parts && (parts[1] && parts[1].toLowerCase() !== location.protocol || parts[2].toLowerCase() !== location.host);
// If we're requesting a remote document // If we're requesting a remote document
// and trying to load JSON or Script with a GET // and trying to load JSON or Script with a GET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment