]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: fix charset 'guessing' algorithm
authorDaniel Axtens <dja@axtens.net>
Wed, 28 Jun 2017 07:48:43 +0000 (17:48 +1000)
committerStephen Finucane <stephen@that.guru>
Wed, 28 Jun 2017 20:41:28 +0000 (21:41 +0100)
commited4f09613d97481c740f0c5983b2ac9f8136fd51
tree933f0a3d81f64fe7cb7b5eda61f76c1099cb1197
parent4c5bc7515e864a0b5d2d8c1a0a7016857f5ae4c7
parser: fix charset 'guessing' algorithm

The charset guessing algorithm doesn't work if it has to guess
multiple charsets, as it overwrites the payload with None.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/parser.py