]> Sergey Matveev's repositories - public-inbox.git/commit
nntpd: reject control characters entirely
authorEric Wong <e@80x24.org>
Wed, 18 May 2016 18:58:04 +0000 (18:58 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 May 2016 18:58:59 +0000 (18:58 +0000)
commitd9f8d7fbc53dfef25f8a8b260274afcade86ed42
tree89ffbc4b3f01dc3c077a1ca4233b1a4966001a80
parent46f3581902ac04e835d3bff9f84f8331906da02f
nntpd: reject control characters entirely

There's no place for them in the commands and we don't take
messages; potentially printing them into a log opened in a
terminal is too dangerous.

Hoist out read_til_dot in the test while we're at it.
lib/PublicInbox/NNTP.pm
t/nntpd.t