]> git.ipfire.org Git - thirdparty/patchwork.git/commit
urls: Also decode slashes in message IDs
authorStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 17:05:03 +0000 (18:05 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 17:11:13 +0000 (18:11 +0100)
commitddc4c7e41a7eaec5c08296d4b441c896324f86d4
tree1a988445d54475047a55eca8fc46d88acabec8db
parent185a49bce36f86e25a35c4ebb15d454db4b41030
urls: Also decode slashes in message IDs

In commit 2653fdbb2, we started encoding slashes in message IDs
presented to users. This allowed us to support message IDs containing
slashes, which are allowed per the RFC and have been seen in the wild.
However, we continue to store the original unencoded message IDs in the
database and unfortunately we neglected to reverse the decoding in the
functions for downloading patch diffs and mboxes. Address this now.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 2653fdbb2 ("urls: Encode slashes in message IDs")
Closes: #518
Cc: Siddhesh Poyarekar <siddhesh@gotplt.org>
Cc: DJ Delorie <dj@delorie.com>
patchwork/models.py
patchwork/views/patch.py