The underscore is not a valid character in the scheme of a URL but it is used
by squid as in cache_object://.
char *str;
const char *start;
- // remove any scheme:// at the beginning of the URL (see rfc2396 section 3.1)
- for (str=url ; *str && (isalnum(*str) || *str=='+' || *str=='-' || *str=='.') ; str++);
+ /*
+ Remove any scheme:// at the beginning of the URL (see rfc2396 section 3.1).
+ The underscore is not part of the standard but is found in the squid logs as cache_object://.
+ */
+ for (str=url ; *str && (isalnum(*str) || *str=='+' || *str=='-' || *str=='.' || *str=='_') ; str++);
if (*str==':' && str[1]=='/' && str[2]=='/') {
url=str+3;
while (*url=='/') url++;