summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-04-28 15:53:45 +0200
committerRoger Braun <roger@rogerbraun.net>2017-04-28 15:53:45 +0200
commit59d4cc60364fd1abf5cbc881e88757b378456b64 (patch)
tree7a1d27d4c355a4e6b6663464cefb0daa26ed114f
parent1422e7aa84a897c6026e9dcd26b7d5955050687a (diff)
downloadpleroma-59d4cc60364fd1abf5cbc881e88757b378456b64.tar.gz
pleroma-59d4cc60364fd1abf5cbc881e88757b378456b64.zip
normalize hex number.
-rw-r--r--lib/pleroma/web/websub/websub_controller.ex1
1 files changed, 1 insertions, 0 deletions
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