mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +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,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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue