From: Daniel Veillard (Daniel.Veillard@imag.fr)
Date: Fri Feb 02 2001 - 03:17:29 EST
On Thu, Feb 01, 2001 at 06:50:22PM -0500, Marc Sanfacon wrote:
>
> Hi there,
> when calling xmlBuildURI with the following arguments:
>
> xmlBuildURI("http://www.abc.com", "./");
>
> the resulting uri is: "http://www.abc.com/./"
>
> Or it should be "http://www.abc.com/"
>
> The problem is in xmlNormalizeURIPath:
>
> while (path[cur] != 0) {
> /*
> * c) All occurrences of "./", where "." is a complete path segment,
> * are removed from the buffer string.
> */
> if ((path[cur] == '.') && (path[cur + 1] == '/')) {
> cur += 2;
> + if (path[cur] == 0) {
> + path[out++] = 0;
> + }
> continue;
> }
Hum, right ...
Applied,
thanks,
Daniel
-- Daniel Veillard | Red Hat Network http://redhat.com/products/network/ veillard@redhat.com | libxml Gnome XML toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Fri Feb 02 2001 - 04:43:54 EST