diff options
author | Tyler Miller <tmillr@proton.me> | 2023-08-01 08:28:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 08:28:28 -0700 |
commit | 0804034c07ad5883bc653d054e549a87d429a8b7 (patch) | |
tree | bd067936c811a26051f15c37986e0ffe5214cef9 /runtime/lua/vim/inspect.lua | |
parent | dfe19d6e0047ea2a2a75dff0c57f4c4de1c0196a (diff) | |
download | rneovim-0804034c07ad5883bc653d054e549a87d429a8b7.tar.gz rneovim-0804034c07ad5883bc653d054e549a87d429a8b7.tar.bz2 rneovim-0804034c07ad5883bc653d054e549a87d429a8b7.zip |
fix(loader): cache path ambiguity #24491
Problem: cache paths are derived by replacing each reserved/filesystem-
path-sensitive char with a `%` char in the original path. With this
method, two different files at two different paths (each containing `%`
chars) can erroneously resolve to the very same cache path in certain
edge-cases.
Solution: derive cache paths by url-encoding the original (path) instead
using `vim.uri_encode()` with `"rfc2396"`. Increment `Loader.VERSION` to
denote this change.
Diffstat (limited to 'runtime/lua/vim/inspect.lua')
0 files changed, 0 insertions, 0 deletions