From ad1d163770171baad931c3a796ae4715ec6f7706 Mon Sep 17 00:00:00 2001 From: Siegfried Porterfield Date: Fri, 21 Jul 2023 06:23:52 +0200 Subject: [PATCH] split only sitename from rest of pass to allow colon in pass --- app/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api.rb b/app/api.rb index e61868a5..eaf66832 100644 --- a/app/api.rb +++ b/app/api.rb @@ -200,7 +200,7 @@ def init_api_credentials api_key = bearer_match.captures.first api_error_invalid_auth if api_key.nil? || api_key.empty? else - user, pass = Base64.decode64(auth.match(/Basic (.+)/)[1]).split(':') + user, pass = Base64.decode64(auth.match(/Basic (.+)/)[1]).split(':', 2) end rescue api_error_invalid_auth