Make passwords with a colon in them work.
This commit is contained in:
parent
fcc485725d
commit
97d5d1d385
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue