Re: [xml] Bug in xmlParseURIServer
- From: Daniel Veillard <veillard redhat com>
- To: François Delyon <f delyon satimage fr>
- Cc: libxml <xml gnome org>
- Subject: Re: [xml] Bug in xmlParseURIServer
- Date: Mon, 28 May 2007 10:17:26 -0400
On Fri, May 18, 2007 at 10:30:31AM +0200, François Delyon wrote:
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.
dohh, right, thanks for spotting this, fixed in SVN now !
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.
Hum, no, we had HTTP write contributed back a long time ago
but nobody so far tried to use FTP for this.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]