diff options
author | Soren L. Hansen <sorenisanerd@gmail.com> | 2024-04-04 13:31:20 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-04-05 15:57:02 +0200 |
commit | 4500b0e423a2c58e6e54526d0d02d2924cc774b6 (patch) | |
tree | 21ea70f023d7614c67d84f2dda8a841031b5db02 /.mailmap | |
parent | 060cce0a910ffd9dc4e92efbe758fc5f187c3145 (diff) |
resources/page: Escape hash sign in permalinks
When creating a link to a file with a `#` in the filename, the link gets
truncated. This happens because the filename is eventaully passed to
`url.Parse` which (correctly!) interprets the `#` as fragment separator.
This commit escapes the `#` in the filename before creating the link.
Fixes #4926
Fixes #8232
Fixes #12342
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions