projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d08a34e
)
Fix basic auth for passwords with a colon.
author
eal
<eal@waifu.club>
Mon, 4 Dec 2017 20:45:16 +0000
(22:45 +0200)
committer
eal
<eal@waifu.club>
Mon, 4 Dec 2017 20:45:16 +0000
(22:45 +0200)
lib/pleroma/plugs/authentication_plug.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/authentication_plug.ex
b/lib/pleroma/plugs/authentication_plug.ex
index 14654f2e6ff6f73aa8d7aa86cc6872e914b139f4..beb02eb88bc5150ca2102c9e2ae3044c726e40be 100644
(file)
--- a/
lib/pleroma/plugs/authentication_plug.ex
+++ b/
lib/pleroma/plugs/authentication_plug.ex
@@
-44,7
+44,7
@@
defmodule Pleroma.Plugs.AuthenticationPlug do
defp decode_header(conn) do
with ["Basic " <> header] <- get_req_header(conn, "authorization"),
{:ok, userinfo} <- Base.decode64(header),
- [username, password] <- String.split(userinfo, ":")
+ [username, password] <- String.split(userinfo, ":"
, parts: 2
)
do
{:ok, username, password}
end