[xml] Bug in xmlParseURIServer
- From: François Delyon <f delyon satimage fr>
- To: libxml <xml gnome org>
- Subject: [xml] Bug in xmlParseURIServer
- Date: Fri, 18 May 2007 10:30:31 +0200
File uri.c line 1256
while (IS_USERINFO(cur)) NEXT(cur);
if (*cur == '@') {
if (uri != NULL) {
if (uri->user != NULL) xmlFree(uri->user);
if (uri->cleanup & 2)
uri->path = STRNDUP(*str, cur - *str);
else
uri->user = xmlURIUnescapeString(*str, cur - *str, NULL);
}
cur++;
uri->path must be changed into uri->user.
This breaks ftp read access like "ftp://user:pass host/...".
By the way, does libxml2 handle ftp write access?
This seems to be broken for me.
Regards,
François.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]