Don't allow message source name to include ','.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@507 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2014-10-14 12:37:56 +00:00
parent 5126d21126
commit 8fde6f8248

View File

@@ -1955,7 +1955,7 @@ void parse_server(char *orig_line)
#define islegal(c) (((c) >= 'A' && (c) <= '~') || \
((c) >= '0' && (c) <= '9') || (c) == '-' || (c & 0x80))
if (*from && !strchr(from, '.') && !islegal(*from))
if (*from && (!islegal(*from) || strchr(from, ',')))
{
rfc1459_odd(from, comm, ArgList);
return;