URL-Encoding of markdown links broken (doubly encoded)
Summary
URLs in markdown files which contain escaped characters are displayed incorrect by the gitlab markdown renderer. E.g. a space
should become %20
, but becomes %2520
. Since %25
is the encoding for a literal %
sign, it seems like the percent-encoder is run twice.
Steps to reproduce
- "Edit" a markdown file in the web UI
- Insert an URL containing characters to be escaped (like whitespace)
- Click "Preview" and check if the URL appears correct / the link works
Relevant logs and/or screenshots
See our first example of this bug here in the link captioned "MV 2015-12".
Output of checks
Gitlab version (as per the /help page): 8.14.3 2f0065b2
If necessary, I can ask our admins to provide any kind of log or debug output.