[libxml2] Remove premature XInclude check on URI being relative



commit 0b86537dfa3b0039136ced49c6aab8e50234923f
Author: Alexey Neyman <stilor att net>
Date:   Mon May 6 10:20:18 2013 +0800

    Remove premature XInclude check on URI being relative
    
    As it gives false negatives, see
      https://mail.gnome.org/archives/xml/2013-April/msg00023.html

 xinclude.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xinclude.c b/xinclude.c
index ace005b..107ac03 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -1687,7 +1687,7 @@ loaded:
     /*
      * Do the xml:base fixup if needed
      */
-    if ((doc != NULL) && (URL != NULL) && (xmlStrchr(URL, (xmlChar) '/')) &&
+    if ((doc != NULL) && (URL != NULL) &&
         (!(ctxt->parseFlags & XML_PARSE_NOBASEFIX)) &&
        (!(doc->parseFlags & XML_PARSE_NOBASEFIX))) {
        xmlNodePtr node;


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