cgi escaped basic auth data in ActiveResource?

ActiveResource basic auth currently breaks when certain chars are used in the user name and/or password field, e.g. '@' as part of the user name.

I created a ticket on the issue[1], but closed it again as I'm not sure where the responsibility really belongs. It's a showstopper for us, though.. Thoughts?

[1] <http://dev.rubyonrails.org/ticket/10902&gt;

Regards, Isak

I just ran into the same problem... if you use %40 and than call CGI.unescape on the username the problem is fixed. I forgot my username to the rails trac so I didn't post on the ticket. It should be an easy patch, maybe I'll submit if I get time.