~ubuntu-branches/ubuntu/utopic/libxml2/utopic

« back to all changes in this revision

Viewing changes to debian/patches/0006-properly-quote-the-namespace-uris-written-out-during.patch

  • Committer: Package Import Robot
  • Author(s): Aron Xu, Christian Svensson, Daniel Schepler, Helmut Grohne, Adam Conrad, Matthias Klose, Aron Xu
  • Date: 2014-07-09 05:40:15 UTC
  • mfrom: (43.2.6 sid)
  • Revision ID: package-import@ubuntu.com-20140709054015-1q7dyagza4p2gkm0
Tags: 2.9.1+dfsg1-4
[ Christian Svensson ]
* Do not build-depend on readline (Closes: #742350)

[ Daniel Schepler ]
* Patch to bootstrap without python (Closes: #738080)

[ Helmut Grohne ]
* Drop unneeded B-D on perl and binutils (Closes: #753005)

[ Adam Conrad ]
* Actually run dh_autoreconf, which the old/new mixed rules file misses.

[ Matthias Klose ]
* Add patch to fix python multiarch issue
* Allow the package to cross-build by tweaking B-Ds on python
* Set PYTHON_LIBS for cross builds

[ Aron Xu ]
* Use correct $CC
* Configure udeb without python
* New round of cherry-picking upstream fixes
  - Includes fixes for CVE-2014-0191 (Closes: #747309).
* Call prename with -vf
* Require python-all-dev (>= 2.7.5-5~)
* Bump std-ver: 3.9.4 -> 3.9.5, no change

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
4
 
 
5
---
 
6
 c14n.c |    9 +++++----
 
7
 1 file changed, 5 insertions(+), 4 deletions(-)
 
8
 
 
9
diff --git a/c14n.c b/c14n.c
 
10
index afd95b3..ca77f92 100644
 
11
--- a/c14n.c
 
12
+++ b/c14n.c
 
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, "=");
 
19
     } else {
 
20
-        xmlOutputBufferWriteString(ctx->buf, " xmlns=\"");
 
21
+        xmlOutputBufferWriteString(ctx->buf, " xmlns=");
 
22
     }
 
23
     if(ns->href != NULL) {
 
24
-       xmlOutputBufferWriteString(ctx->buf, (const char *) ns->href);
 
25
+       xmlBufWriteQuotedString(ctx->buf->buffer, ns->href);
 
26
+    } else {
 
27
+       xmlOutputBufferWriteString(ctx->buf, "\"\"");
 
28
     }
 
29
-    xmlOutputBufferWriteString(ctx->buf, "\"");
 
30
     return (1);
 
31
 }
 
32