]> Sergey Matveev's repositories - public-inbox.git/commit
view: dedupe_subject: allow "0" as a valid Subject
authorEric Wong <e@yhbt.net>
Sat, 4 Apr 2020 08:03:17 +0000 (08:03 +0000)
committerEric Wong <e@yhbt.net>
Sat, 4 Apr 2020 23:37:15 +0000 (23:37 +0000)
commitc3e6ffa858003c17e96ef90d13760bda194319e0
tree4985211330ca0b70d3709b555e38e14b0af447e8
parentf9b63d4cd4d5a58c37ed8464b2d335a6932cc118
view: dedupe_subject: allow "0" as a valid Subject

While rare in practice (even by spammers), A single "0" could
theoretically be the entire contents of a Subject line.  So
use the Perl 5.10+ defined-or operator to improve correctness
of subject deduplication.
lib/PublicInbox/View.pm