[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libvir] [PATCH] Fix escaping of '<' in virBufferEscapeString



< is currently escaped as &ll;

I'm guessing it should be &lt;

These are the places where this function is used:

src/xend_internal.c: virBufferEscapeString(buf, " <cmdline>%s</cmdline>\n", tmp); src/xend_internal.c: virBufferEscapeString(&buf, " <bootloader_args>%s</bootloader_args>\n", tmp); src/xm_internal.c: virBufferEscapeString(buf, " <bootloader_args>%s</bootloader_args>\n", str); src/xm_internal.c: virBufferEscapeString(buf, " <cmdline>%s</cmdline>\n", str);

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
Index: src/buf.c
===================================================================
RCS file: /data/cvs/libvirt/src/buf.c,v
retrieving revision 1.7
diff -u -r1.7 buf.c
--- src/buf.c	11 Dec 2007 21:57:29 -0000	1.7
+++ src/buf.c	12 Dec 2007 15:38:46 -0000
@@ -222,7 +222,7 @@
         if (*cur == '<') {
 	    *out++ = '&';
 	    *out++ = 'l';
-	    *out++ = 'l';
+	    *out++ = 't';
 	    *out++ = ';';
 	} else if (*cur == '>') {
 	    *out++ = '&';

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]