mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
use more correct uri encoding method
This commit is contained in:
parent
d9340371e5
commit
dd84e8631b
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ defmodule Philomena.Slug do
|
|||
|> String.replace(":", "-colon-")
|
||||
|> String.replace(".", "-dot-")
|
||||
|> String.replace("+", "-plus-")
|
||||
|> URI.encode()
|
||||
|> URI.encode_www_form()
|
||||
|> String.replace("%20", "+")
|
||||
end
|
||||
|
||||
def slug(_string), do: ""
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue