use more correct uri encoding method

This commit is contained in:
byte[] 2019-12-25 03:49:40 -05:00
parent d9340371e5
commit dd84e8631b

View file

@ -42,7 +42,7 @@ defmodule Philomena.Slug do
|> String.replace(":", "-colon-") |> String.replace(":", "-colon-")
|> String.replace(".", "-dot-") |> String.replace(".", "-dot-")
|> String.replace("+", "-plus-") |> String.replace("+", "-plus-")
|> URI.encode() |> URI.encode_www_form()
|> String.replace("%20", "+") |> String.replace("%20", "+")
end end