View | Details | Raw Unified
Collapse All | Expand All

(-) ./wget-1.10/src/url.c (-4 / +11 lines)
 Lines 467-476    Link Here 
{
{
  /* Look for '@' that comes before terminators, such as '/', '?',
  /* Look for '@' that comes before terminators, such as '/', '?',
     '#', or ';'.  */
     '#', or ';'.  */
  const char *p = (const char *)strpbrk (url, "@/?#;");
  const char *p, *pp;
  if (!p || *p != '@')
    return url;
  pp = url;
  return p + 1;
  while ((p = (const char *)strpbrk (pp, "/?@")) != NULL) {
    if (*p != '@')
      break;
    /* Found '@' character so go on with possible next '@'. */
    pp = p + 1;
  }
  
  return pp;
}
}
/* Parse credentials contained in [BEG, END).  The region is expected
/* Parse credentials contained in [BEG, END).  The region is expected