diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-12-07 13:23:07 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-12-07 13:25:03 -0500 |
commit | 933398a9cf89644e5902d3350bbaf61602c6b3fd (patch) | |
tree | 0fcda79bee1e68483164bac8428937857c1f1329 | |
parent | b77ec2d0de73e8f8f81262e33d1ef9c3d68b8576 (diff) | |
download | b4-933398a9cf89644e5902d3350bbaf61602c6b3fd.tar.gz |
send-receive: allow subjects with just [PATCH]
Single-patch v1 series have just [PATCH] at the start, so testing for
"[PATCH " was causing a false-positive for "is this a patch" anti-abuse
test.
Reported-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://msgid.link/f8d14fd5-58e0-853d-64e0-72cc60e69629@tronnes.org
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | misc/send-receive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/send-receive.py b/misc/send-receive.py index e3c8dfc..688efe0 100644 --- a/misc/send-receive.py +++ b/misc/send-receive.py @@ -345,7 +345,7 @@ class SendReceiveListener(object): # - Has to include a diff or a diffstat passes = True subject = self.clean_header(msg.get('Subject', '')) - if not subject.startswith('[PATCH '): + if not subject.startswith('[PATCH'): passes = False if passes: cte = msg.get_content_type() |