$.ajax doesn't ignore case of scheme and host in URL.
(ver 1.4.2)
line 5058: remote = parts && (parts[1] && parts[1] !== location.protocol parts[2] !== location.host);
|
SHOULD BE
remote = parts && (parts[1] && parts[1].toLowerCase() !== location.protocol.toLowerCase() parts[2].toLowerCase() !== location.host.toLowerCase());
|
because scheme in URL and domain names are case-insensitive.
Change History (7)
Milestone: |
1.4.3 →
1.4.4
|
Priority: |
→ undecided
|
Status: |
new →
open
|
Priority: |
undecided →
low
|
Keywords: |
ajax case-senstivity added
|
Owner: |
set to SlexAxton
|
Status: |
open →
assigned
|
Milestone: |
1.4.5 →
1.4.4
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Version: |
1.4.2 →
1.4.3
|
I think this is valid. I'm not sure this comes up a lot, but if we think it's worth the few extra bytes, it could save someone some pain. Thoughts?