From 97d5d1d3850e63fadd9664b9982428f058625c5b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 27 Jun 2007 18:46:23 +0000 Subject: [PATCH] Make passwords with a colon in them work. --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 729384096..792792f83 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -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 -- 2.43.2