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>
patch = Patch(
msgid=msgid,
project=project,
- name=name,
+ name=name[:255],
date=date,
headers=headers,
submitter=author,
cover_letter = CoverLetter(
msgid=msgid,
project=project,
- name=name,
+ name=name[:255],
date=date,
headers=headers,
submitter=author,