Re: [xml] Bug in xmlParseURIServer

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);
              uri->user = xmlURIUnescapeString(*str, cur - *str, NULL);

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.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]