Skip to content
Snippets Groups Projects
Commit 80759f01 authored by kaniini's avatar kaniini
Browse files

xml builder: properly escape quotes

parent 582bd9d1
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ defmodule Pleroma.XmlBuilder do
defp make_open_tag(tag, attributes) do
attributes_string =
for {attribute, value} <- attributes do
value = String.replace(value, "\"", "&quot;")
"#{attribute}=\"#{value}\""
end
|> Enum.join(" ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment