URL encoded semicolons, HTTP Authentication and Safari

Manfred Stienstra, 08 Mar 2007, 21:26 in ruby on rails and broken, last updated 29 Mar 2007, 11:51 (edit).

Changeset 6185, or so we assume, broke our fix for Basic Authentication in Safari when using RESTful Rails routes.

Luckily it wasn’t too hard to fix the fix and we’ve decided to make a plugin out of it so we can easily keep the fix in sync with Rails for all our projects. You can find safari_basic_auth_fix in our Subversion repository. The current fix makes sure that semicolons are encoded for every outgoing URL and it decodes the semicolons for all the incoming URLs.

Update: Changeset 6485 removed semicolons as a action separator, so this shouldn’t be a problem anymore once you upgrade to Rails trunk.

Comments

  1. Tim Lucas about 6 hours later: (delete | show email)

    much nicer than our collective hacks.

  2. Martin 12 days later: (delete | show email)

    You star. I've been banging my head against the wall for a good day trying to work out why this was happening. Thanks for sorting out the plugin.

  3. Manfred Stienstra 12 days later: (delete)

    No problem.

Add your comment

In order to fight spam on this blog, posting comments from a browser without javascript is currently not supported.