diff options
author | Eric Wong <e@yhbt.net> | 2020-04-02 00:17:13 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-02 17:20:53 +0000 |
commit | 150acb76fe824283ee41dcccc263eb38195d7ebd (patch) | |
tree | 4efe7962eb4f122870350e4774b2299a94db2751 /lib/PublicInbox/NNTP.pm | |
parent | 906393b801050e303d2ec2a660c85de4a5fa4740 (diff) | |
download | public-inbox-150acb76fe824283ee41dcccc263eb38195d7ebd.tar.gz |
While this is not a known problem in practice, RFC 3977 section 3.1 states: Keywords and arguments MUST each be separated by one or more space or TAB characters.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 39e2f88e..d1f75f6f 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -76,7 +76,7 @@ sub args_ok ($$) { # returns 1 if we can continue, 0 if not due to buffered writes or disconnect sub process_line ($$) { my ($self, $l) = @_; - my ($req, @args) = split(/[ \t]/, $l); + my ($req, @args) = split(/[ \t]+/, $l); return 1 unless defined($req); # skip blank line $req = $self->can('cmd_'.lc($req)); return res($self, '500 command not recognized') unless $req; |