Bug Tracker

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#6908 closed bug (fixed)

$.ajax doesn't ignore case of scheme and host in URL.

Reported by: YOCKOW Owned by: SlexAxton
Priority: low Milestone: 1.4.4
Component: ajax Version: 1.4.3
Keywords: ajax, case-senstivity Cc:
Blocked by: Blocking:


(ver 1.4.2)

line 5058: remote = parts && (parts[1] && parts[1] !== location.protocol
parts[2] !== location.host);


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)

comment:1 Changed 6 years ago by SlexAxton

  • Milestone changed from 1.4.3 to 1.4.4
  • Priority set to undecided
  • Status changed from new to open

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?

comment:2 Changed 6 years ago by SlexAxton

  • Priority changed from undecided to low

comment:3 Changed 6 years ago by SlexAxton

  • Keywords ajax case-senstivity added
  • Owner set to SlexAxton
  • Status changed from open to assigned

comment:4 Changed 6 years ago by SlexAxton

I have made a pull request for this. http://github.com/jquery/jquery/pull/62

comment:5 Changed 6 years ago by snover

  • Milestone changed from 1.4.4 to 1.4.5

Retargeting due to severity of regressions in 1.4.3.

comment:6 Changed 6 years ago by john

  • Milestone changed from 1.4.5 to 1.4.4
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from 1.4.2 to 1.4.3

comment:7 Changed 6 years ago by snover

#6873 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.