From c53c7d283f7fa93dc3b4ffad2e8c7a24e9949675 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 1 Dec 2019 21:38:19 -0500 Subject: [PATCH] uri encoded slug lookups --- lib/philomena_web/controllers/tag_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/tag_controller.ex b/lib/philomena_web/controllers/tag_controller.ex index 6ef99cc0..dca8d326 100644 --- a/lib/philomena_web/controllers/tag_controller.ex +++ b/lib/philomena_web/controllers/tag_controller.ex @@ -35,7 +35,7 @@ defmodule PhilomenaWeb.TagController do tag = Tag - |> where(slug: ^slug) + |> where(slug: ^URI.encode(slug)) |> preload([:aliases, :implied_tags, :implied_by_tags, :dnp_entries, public_links: :user]) |> Repo.one()