Ignore padding for salmon public keys.
This commit is contained in:
parent
67bfa19b35
commit
fecbd099cd
3 changed files with 14 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ defmodule Pleroma.Web.Salmon do
|
|||
|
||||
[modulus, exponent] = magickey
|
||||
|> String.split(".")
|
||||
|> Enum.map(&Base.url_decode64!/1)
|
||||
|> Enum.map(fn (n) -> Base.url_decode64!(n, padding: false) end)
|
||||
|> Enum.map(make_integer)
|
||||
|
||||
{:RSAPublicKey, modulus, exponent}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue