Make passwords with a colon in them work.

This commit is contained in:
Tom Hughes 2007-06-27 18:46:23 +00:00
parent fcc485725d
commit 97d5d1d385

View file

@ -59,7 +59,7 @@ class ApplicationController < ActionController::Base
end
# only basic authentication supported
if authdata and authdata[0] == 'Basic'
user, pass = Base64.decode64(authdata[1]).split(':')[0..1]
user, pass = Base64.decode64(authdata[1]).split(':',2)
end
return [user, pass]
end