From: Roger Braun <roger@rogerbraun.net>
Date: Fri, 28 Apr 2017 13:53:45 +0000 (+0200)
Subject: normalize hex number.
X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=59d4cc60364fd1abf5cbc881e88757b378456b64;p=akkoma

normalize hex number.
---

diff --git a/lib/pleroma/web/websub/websub_controller.ex b/lib/pleroma/web/websub/websub_controller.ex
index cd59a70a3..e5ecf6523 100644
--- a/lib/pleroma/web/websub/websub_controller.ex
+++ b/lib/pleroma/web/websub/websub_controller.ex
@@ -34,6 +34,7 @@ defmodule Pleroma.Web.Websub.WebsubController do
 
   def websub_incoming(conn, %{"id" => id}) do
     with "sha1=" <> signature <- hd(get_req_header(conn, "x-hub-signature")),
+         signature <- String.upcase(signature),
          %WebsubClientSubscription{} = websub <- Repo.get(WebsubClientSubscription, id),
          {:ok, body, _conn} = read_body(conn),
          ^signature <- Websub.sign(websub.secret, body) do