[libxml2] Treat URIs with scheme as absolute in C14N
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Treat URIs with scheme as absolute in C14N
- Date: Mon, 12 Jun 2017 18:29:14 +0000 (UTC)
commit 3939178e4cb797417ff033b1e04ab4b038e224d9
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Mon Jun 12 20:06:37 2017 +0200
Treat URIs with scheme as absolute in C14N
Fixes bug 783656.
c14n.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/c14n.c b/c14n.c
index ca77f92..be687ea 100644
--- a/c14n.c
+++ b/c14n.c
@@ -1375,13 +1375,6 @@ xmlC14NCheckForRelativeNamespaces(xmlC14NCtxPtr ctx, xmlNodePtr cur)
xmlFreeURI(uri);
return (-1);
}
- if ((xmlStrcasecmp((const xmlChar *) uri->scheme, BAD_CAST "urn") != 0)
- && (xmlStrcasecmp((const xmlChar *) uri->scheme, BAD_CAST "dav") !=0)
- && (xmlStrlen((const xmlChar *) uri->server) == 0)) {
- xmlC14NErrRelativeNamespace(uri->scheme);
- xmlFreeURI(uri);
- return (-1);
- }
xmlFreeURI(uri);
}
ns = ns->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]