projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1422e7a
)
normalize hex number.
author
Roger Braun
<roger@rogerbraun.net>
Fri, 28 Apr 2017 13:53:45 +0000
(15:53 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Fri, 28 Apr 2017 13:53:45 +0000
(15:53 +0200)
lib/pleroma/web/websub/websub_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/websub/websub_controller.ex
b/lib/pleroma/web/websub/websub_controller.ex
index cd59a70a39fd86244ce6f58724113fc3703335ba..e5ecf6523224913c28478447dbdb5413e4a2d883 100644
(file)
--- 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