This project is archived and is in readonly mode.

#2585 ✓duplicate
Tyler Hunt

HTTP Basic Authentication Broken with Long Credentials

Reported by Tyler Hunt | April 30th, 2009 @ 06:47 PM | in 2.x

When using long credentials with HTTP Basic authentication, the resultant Base64 encoded string will have a newlines. This causes the current authorization routine to choke due to the use of #split on the auth string.

Here's a patch with test to fix the issue.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages