]> 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:16:42 +0000 (18:16 +0100)
commit98384500b64529f921df7e5327137432c5e4578b
tree2b3491181cbb78182b2296b316cfc820f81ac141
parentf8226fff86a007f3961132e03b14afc0c349976f
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>
(cherry picked from commit ddc4c7e41a7eaec5c08296d4b441c896324f86d4)
patchwork/models.py
patchwork/views/patch.py