mirror of
https://github.com/neocities/neocities.git
synced 2025-04-28 11:12:30 +02:00
split only sitename from rest of pass to allow colon in pass
This commit is contained in:
parent
d16bc0bace
commit
ad1d163770
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ def init_api_credentials
|
||||||
api_key = bearer_match.captures.first
|
api_key = bearer_match.captures.first
|
||||||
api_error_invalid_auth if api_key.nil? || api_key.empty?
|
api_error_invalid_auth if api_key.nil? || api_key.empty?
|
||||||
else
|
else
|
||||||
user, pass = Base64.decode64(auth.match(/Basic (.+)/)[1]).split(':')
|
user, pass = Base64.decode64(auth.match(/Basic (.+)/)[1]).split(':', 2)
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
api_error_invalid_auth
|
api_error_invalid_auth
|
||||||
|
|
Loading…
Add table
Reference in a new issue