diff --git a/VERSION b/VERSION index b30a0053..2733a3e7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.57 +1.1.58 diff --git a/lib/supavisor_web/router.ex b/lib/supavisor_web/router.ex index e51830a3..cdb3b507 100644 --- a/lib/supavisor_web/router.ex +++ b/lib/supavisor_web/router.ex @@ -89,6 +89,7 @@ defmodule SupavisorWeb.Router do blocklist = Application.fetch_env!(:supavisor, blocklist_key) with ["Bearer " <> token] <- get_req_header(conn, "authorization"), + token <- Regex.replace(~r/\s|\n/, URI.decode(token), ""), false <- token in blocklist, {:ok, _claims} <- Supavisor.Jwt.authorize(token, secret) do conn