1
From: Aleksey Sanin <aleksey@aleksey.com>
2
Date: Thu, 9 May 2013 16:02:16 +0000
3
Subject: properly quote the namespace uris written out during c14n
7
1 file changed, 5 insertions(+), 4 deletions(-)
9
diff --git a/c14n.c b/c14n.c
10
index afd95b3..ca77f92 100644
13
@@ -547,14 +547,15 @@ xmlC14NPrintNamespaces(const xmlNsPtr ns, xmlC14NCtxPtr ctx)
14
if (ns->prefix != NULL) {
15
xmlOutputBufferWriteString(ctx->buf, " xmlns:");
16
xmlOutputBufferWriteString(ctx->buf, (const char *) ns->prefix);
17
- xmlOutputBufferWriteString(ctx->buf, "=\"");
18
+ xmlOutputBufferWriteString(ctx->buf, "=");
20
- xmlOutputBufferWriteString(ctx->buf, " xmlns=\"");
21
+ xmlOutputBufferWriteString(ctx->buf, " xmlns=");
23
if(ns->href != NULL) {
24
- xmlOutputBufferWriteString(ctx->buf, (const char *) ns->href);
25
+ xmlBufWriteQuotedString(ctx->buf->buffer, ns->href);
27
+ xmlOutputBufferWriteString(ctx->buf, "\"\"");
29
- xmlOutputBufferWriteString(ctx->buf, "\"");