From 9ad33301618ff5b624705c2ae4040c3db2e73273 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 20 Sep 2020 10:04:36 -0400 Subject: [PATCH] careful with reserved characters --- lib/philomena_web/views/tag_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/views/tag_view.ex b/lib/philomena_web/views/tag_view.ex index 5b1545b9..240f25f2 100644 --- a/lib/philomena_web/views/tag_view.ex +++ b/lib/philomena_web/views/tag_view.ex @@ -21,7 +21,7 @@ defmodule PhilomenaWeb.TagView do end 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 def tag_image(%{image: image}) do