[xml] rfc 3986



Although not a fatal error, I keep fielding error reports due to the use of the DAV: uri and was wondering if the attached patch could be slipped in. It is not a complete implementation of rfc 3986, as it is only adding support for the empty path. Rather than creating a new entry point (unsure if it needs to be a standalone check) the check was just added within xmlParseAbsoluteURI.

Rob
Index: uri.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/uri.c,v
retrieving revision 1.77
diff -c -r1.77 uri.c
*** uri.c       3 Feb 2006 09:45:10 -0000       1.77
--- uri.c       24 Feb 2006 18:05:00 -0000
***************
*** 1657,1662 ****
--- 1657,1664 ----
        return(1);
      }
      (*str)++;
+       if (**str == '\0')
+               return 0;
      if (**str == '/')
        return(xmlParseURIHierPart(uri, str));
      return(xmlParseURIOpaquePart(uri, str));


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