aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-05-12 19:04:37 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-05-12 19:04:37 +0000
commit80759f012eb2183bc24f84c4a1f2a5dbe94762ce (patch)
treedf0e475a3af90373d1f0172c438fbc98ccfb99ca /lib
parent582bd9d170446d3ef5312f3266d960b1e22a9d18 (diff)
downloadpleroma-80759f012eb2183bc24f84c4a1f2a5dbe94762ce.tar.gz
xml builder: properly escape quotes
Diffstat (limited to 'lib')
-rw-r--r--lib/xml_builder.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xml_builder.ex b/lib/xml_builder.ex
index 88f8ce2a3..b58602c7b 100644
--- a/lib/xml_builder.ex
+++ b/lib/xml_builder.ex
@@ -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(" ")