]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: subject_check needs to call clean_header
authorDaniel Axtens <dja@axtens.net>
Wed, 28 Sep 2016 04:06:07 +0000 (14:06 +1000)
committerStephen Finucane <stephen@that.guru>
Fri, 7 Oct 2016 18:03:33 +0000 (19:03 +0100)
commit87bd088b3ed1ce6d7cd26ea7f30b3c19c5199181
tree8cf6668d360bd978c89097f64b15487dad6f2ce6
parent6625d4b0dcdf1820b73227c40118625d4db9e130
parser: subject_check needs to call clean_header

When testing with headers with unencoded characters on Py3,
subject_check would fail. It was getting an Header class, rather
than a str/bytes, and so the regex was failing.

Run clean_header to decode everything fully first.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/parser.py