forked from potsda.mn/mobilizon
Fix metadata injection in html
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f2d2dc1620
commit
8298f50b3d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue