]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: cut off patch names after 255 characters
authorDaniel Axtens <dja@axtens.net>
Mon, 27 Mar 2017 05:01:13 +0000 (16:01 +1100)
committerStephen Finucane <stephen@that.guru>
Sun, 9 Apr 2017 16:18:35 +0000 (17:18 +0100)
commite80079e3fc91b1dcab142ff8e598ba563e151fb0
treeb37807d3b0b752fe17aa33ebd086f18165a400c9
parent21e2926743a15dc0ef896a8ef9ccf6e7d59c42cf
parser: cut off patch names after 255 characters

Our model limits the length of patch names to 255 characters.
Enforce this cutoff in the parser, otherwise we throw an
exception and fail to store patches with stupidly long titles.

Reported-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/parser.py