[xml] rfc 3986
- From: Rob Richards <rrichards ctindustries net>
- To: "xml gnome org" <xml gnome org>
- Subject: [xml] rfc 3986
- Date: Mon, 27 Feb 2006 06:42:22 -0500
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]