From: Marc Sanfacon (sanm@copernic.com)
Date: Wed Sep 20 2000 - 09:13:28 EDT
Hi there,
a bug, that I posted the fix for is still there in version 2.2.3.
It has to do with the function xmlBuildURI when passed the following
arguments:
http://www.myserver.com, index.html
The result is: http://www.myserver.comindex.html instead of
http://www.myserver.com/index.html
The problem is at line: 1645 of uri.c
/*
* Ensure the path includes a '/'
*/
if ((out >0) && (res->path[out -1] != '/') &&
(ref->path[0] != 0) && (ref->path[index] != '/')) {
res->path[out++] = '/';
}
In my case, 'out' is 0, so it doesn't go in the test.
The test should be:
/*
* Ensure the path includes a '/'
*/
if (out > 0) {
if (res->path[out -1] != '/') {
res->path[out++] = '/';
}
} else if ((ref->path[0] != 0) && (ref->path[index] != '/')) {
res->path[out++] = '/';
}
Am I right ?
Thank you.
---------------------------------------------------------------------
"Better the pride that resides, in a citizen of the world.
Than the pride that divides, when a colorful rag is
unfurled." Neil Peart
---------------------------------------------------------------------
Marc Sanfacon, Software developer Copernic.com
e-mail: sanm@copernic.com R&D Group
Tel : (418) 527-0528 ext 1212
Get COPERNIC SHOPPER for FREE at:
Procurez-vous GRATUITEMENT COPERNIC SHOPPER à :
<http://www.copernic.com/products/shopper/download.html>
---- 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 : Wed Sep 20 2000 - 09:43:36 EDT