From: Tom Hughes Date: Wed, 27 Jun 2007 18:46:23 +0000 (+0000) Subject: Make passwords with a colon in them work. X-Git-Tag: live~8345 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/97d5d1d3850e63fadd9664b9982428f058625c5b?hp=fcc485725dac6c31c6e01db5142d15e9b35f6509 Make passwords with a colon in them work. --- 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