fix 225332, patch by ch.ey@gmx.net r=me, sr=mscott, a=asa problem with pop3 leave on server when user name has a space in it

This commit is contained in:
bienvenu%nventure.com 2003-11-22 16:13:02 +00:00
Родитель 237bc68668
Коммит 3b0f89016b
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -246,9 +246,10 @@ net_pop3_load_state(const char* searchhost,
if (buf[0] == '*') {
/* It's a host&user line. */
current = NULL;
host = nsCRT::strtok(buf + 1, " \t\r\n", &newStr);
/* XP_FileReadLine uses LF on all platforms */
user = nsCRT::strtok(newStr, " \t\r\n", &newStr);
host = nsCRT::strtok(buf + 1, " \t\r\n", &newStr);
/* without space to also get realnames - see bug 225332 */
user = nsCRT::strtok(newStr, "\t\r\n", &newStr);
if (host == NULL || user == NULL) continue;
for (tmp = result ; tmp ; tmp = tmp->next)
{