Index: squid/helpers/basic_auth/NCSA/ncsa_auth.c diff -c squid/helpers/basic_auth/NCSA/ncsa_auth.c:1.1.2.2 squid/helpers/basic_auth/NCSA/ncsa_auth.c:1.1.2.3 *** squid/helpers/basic_auth/NCSA/ncsa_auth.c:1.1.2.2 Wed Aug 20 06:35:51 2003 --- squid/helpers/basic_auth/NCSA/ncsa_auth.c Sat Sep 25 14:53:17 2004 *************** *** 88,95 **** if ((buf[0] == '#') || (buf[0] == ' ') || (buf[0] == '\t') || (buf[0] == '\n')) continue; ! user = strtok(buf, ":\n"); ! passwd = strtok(NULL, ":\n"); if ((strlen(user)> 0) && passwd) { u = xmalloc(sizeof(*u)); u->user = xstrdup(user); --- 88,95 ---- if ((buf[0] == '#') || (buf[0] == ' ') || (buf[0] == '\t') || (buf[0] == '\n')) continue; ! user = strtok(buf, ":\n\r"); ! passwd = strtok(NULL, ":\n\r"); if ((strlen(user)> 0) && passwd) { u = xmalloc(sizeof(*u)); u->user = xstrdup(user);

AltStyle によって変換されたページ (->オリジナル) /