mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Forces lower case comparison of protocol and host when determining whether the request is remote or local. Fixes #6908
This commit is contained in:
parent
4fcfee4369
commit
a58f8f22d1
@ -287,7 +287,7 @@ jQuery.extend({
|
||||
|
||||
// Matches an absolute URL, and saves the domain
|
||||
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
|
||||
// and trying to load JSON or Script with a GET
|
||||
|
Loading…
Reference in New Issue
Block a user