From dd84e8631b2e0cf7328e5f0e985f695b0fc4541e Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 25 Dec 2019 03:49:40 -0500 Subject: [PATCH] use more correct uri encoding method --- lib/philomena/slug.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/slug.ex b/lib/philomena/slug.ex index fbbcef5e..1569aa5e 100644 --- a/lib/philomena/slug.ex +++ b/lib/philomena/slug.ex @@ -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 \ No newline at end of file +end