projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582bd9d
)
xml builder: properly escape quotes
author
William Pitcock
<nenolod@dereferenced.org>
Sun, 12 May 2019 19:04:37 +0000
(19:04 +0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Sun, 12 May 2019 19:04:37 +0000
(19:04 +0000)
lib/xml_builder.ex
patch
|
blob
|
history
diff --git
a/lib/xml_builder.ex
b/lib/xml_builder.ex
index 88f8ce2a37a0ca7f54bcc71e2e4f4588a95675db..b58602c7b7592f4ef3fa9ab218deaa90afbb05e6 100644
(file)
--- 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, "\"", """)
"#{attribute}=\"#{value}\""
end
|> Enum.join(" ")