careful with reserved characters

This commit is contained in:
byte[] 2020-09-20 10:04:36 -04:00
parent 54e775a6c6
commit 9ad3330161

View file

@ -21,7 +21,7 @@ defmodule PhilomenaWeb.TagView do
end end
def pretty_tag_path(%{slug: slug}) do def pretty_tag_path(%{slug: slug}) do
"/tags/" <> URI.encode(slug, &(&1 == ?+ or URI.char_unescaped?(&1))) "/tags/" <> URI.encode(slug, &(&1 == ?+ or URI.char_unreserved?(&1)))
end end
def tag_image(%{image: image}) do def tag_image(%{image: image}) do