[xml] Bug in xmlParseURIServer



  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]