]> Sergey Matveev's repositories - public-inbox.git/commitdiff
filter/rubylang: require ASCII digit for mailcount
authorEric Wong <e@80x24.org>
Tue, 4 Jun 2019 08:25:10 +0000 (08:25 +0000)
committerEric Wong <e@80x24.org>
Tue, 4 Jun 2019 10:06:18 +0000 (10:06 +0000)
Unlikely to matter, but who knows...

lib/PublicInbox/Filter/RubyLang.pm

index a43d67a9352e4ea6ab71aad954b3fe44933d55e3..d40705b74e0757f4772b399da73a3c66bda8c55a 100644 (file)
@@ -50,7 +50,7 @@ sub scrub {
                my @v = $hdr->header_raw('X-Mail-Count');
                my $n;
                foreach (@v) {
-                       /\A\s*(\d+)\s*\z/ or next;
+                       /\A\s*([0-9]+)\s*\z/ or next;
                        $n = $1;
                        last;
                }