Skip to main content

Bug Tracker

Side navigation

#5089 closed bug (invalid)

Opened August 20, 2009 11:15PM UTC

Closed June 11, 2010 03:17AM UTC

Basic authentication fails with "@" in password (Safari)

Reported by: mahemoff Owned by:
Priority: minor Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: authentication Cc:
Blocked by: Blocking:

My script posts status messages to Twitter, using $.ajax() username and password parameters for HTTP basic auth. I found it worked on Firefox (3.5), but failed on Safari (3.2.3). This is probably because the call is being converted to http://username@password:, and the presence of an "@" becomes ambiguous.

xhr = $.ajax({

type: "POST",

url: "",

data: "status="+$("#status").val(),

success: function(tweetJSON) {



error: function(xhr, errorStatus) {



username: $("#username"+accountIndex).val(),

password: $("#password"+accountIndex).val()


Attachments (0)
Change History (1)

Changed June 11, 2010 03:17AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

jQuery just passes the username and password to the xhr object; if there is a problem beyond that it would be in Safari. Could you reopen the ticket with some more information about what is passed to the site when the problem occurs?