mirror of
https://github.com/pissnet/angiosperm.git
synced 2025-05-06 02:45:03 +01:00
dline,kline: Avoid breaking the protocol with bad bans.
This commit is contained in:
parent
b5d9427a78
commit
2b843a5bdd
2 changed files with 14 additions and 1 deletions
modules
|
@ -669,6 +669,13 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char
|
|||
rb_strlcpy(lhost, userhost, HOSTLEN + 1);
|
||||
}
|
||||
|
||||
/* would break the protocol */
|
||||
if (*luser == ':' || *lhost == ':')
|
||||
{
|
||||
sendto_one_notice(source_p, ":Invalid K-Line");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue