version 1.14, 2000/07/05 12:32:16
|
version 1.15, 2000/08/22 22:20:34
|
Line 1024 xmlParseURIPathSegments(xmlURIPtr uri, c
|
Line 1024 xmlParseURIPathSegments(xmlURIPtr uri, c
|
*str = cur; |
*str = cur; |
return(-1); |
return(-1); |
} |
} |
|
path[len] = '\0'; |
if (uri->path != NULL) |
if (uri->path != NULL) |
memcpy(path, uri->path, len2); |
memcpy(path, uri->path, len2); |
if (slash) { |
if (slash) { |
Line 1614 xmlBuildURI(const xmlChar *URI, const xm
|
Line 1615 xmlBuildURI(const xmlChar *URI, const xm
|
*/ |
*/ |
if (ref->path != NULL) { |
if (ref->path != NULL) { |
index = 0; |
index = 0; |
|
/* |
|
* Ensure the path includes a '/' |
|
*/ |
|
if (res->path[0] != '/' && ref->path[0] != 0 && |
|
ref->path[index] != '/') { |
|
res->path[out++] = '/'; |
|
} |
while (ref->path[index] != 0) { |
while (ref->path[index] != 0) { |
res->path[out++] = ref->path[index++]; |
res->path[out++] = ref->path[index++]; |
} |
} |