clean_host(const char *host)
{
int len = 0;
+ const char *last_slash = 0;
if (*host == '\0' || *host == ':')
return 0;
if(!IsHostChar(*host))
return 0;
+ if(*host == '/')
+ last_slash = host;
}
if(len > HOSTLEN)
return 0;
+ if(last_slash && IsDigit(last_slash[1]))
+ return 0;
+
return 1;
}
/*
* me_realhost
- * parv[0] = origin
* parv[1] = real host
*
* Yes this contains a little race condition if someone does a whois
/*
* ms_chghost
- * parv[0] = origin
* parv[1] = target
* parv[2] = host
*/
/*
* me_chghost
- * parv[0] = origin
* parv[1] = target
* parv[2] = host
*/
/*
* mo_chghost
- * parv[0] = origin
* parv[1] = target
* parv[2] = host
*/