[Pkg-libvirt-commits] [libguestfs] 102/146: v2v: DOM: Fix quoting of XML comments.
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 17:01:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 0b7107bb2d4b9fe44a2c302b7b0ed0edd3124cc6
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed Dec 24 16:51:15 2014 +0000
v2v: DOM: Fix quoting of XML comments.
We need to quote at least & and > in XML comments.
(cherry picked from commit c5e11785afd03bc3d9f9f23ab4590e4a08ede9d2)
---
v2v/DOM.ml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/v2v/DOM.ml b/v2v/DOM.ml
index d1541f1..cb65c1e 100644
--- a/v2v/DOM.ml
+++ b/v2v/DOM.ml
@@ -48,7 +48,9 @@ let e name attrs children =
*)
let rec node_to_chan ?(indent = 0) chan = function
| PCData str -> output_string chan (xml_quote_pcdata str)
- | Comment str -> output_spaces chan indent; fprintf chan "<!-- %s -->" str
+ | Comment str ->
+ output_spaces chan indent;
+ fprintf chan "<!-- %s -->" (xml_quote_pcdata str)
| Element e -> element_to_chan ~indent chan e
and element_to_chan ?(indent = 0) chan
{ e_name = name; e_attrs = attrs; e_children = children } =
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list