Fix metadata injection in html

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-06 20:25:16 +02:00
parent f2d2dc1620
commit 8298f50b3d
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -40,7 +40,7 @@ defmodule Mobilizon.Web.Views.Utils do
@spec replace_meta(String.t(), String.t()) :: String.t()
defp replace_meta(index_content, tags) do
index_content
|> String.replace("<meta name=\"server-injected-data\">", tags)
|> String.replace("<meta name=\"server-injected-data\"/>", tags)
|> String.replace("<meta name=\"server-injected-data\" />", tags)
end