mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-29 23:07:45 +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(":", "-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
|
||||||
|
|
||||||
def slug(_string), do: ""
|
def slug(_string), do: ""
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue