From 10e94bd036d70f24a924b9bd7401fd4b2e00bbdc Mon Sep 17 00:00:00 2001 From: Neon1201 Date: Sat, 1 Aug 2026 21:03:45 +1200 Subject: [PATCH] Fix percent encoding in X-Accel paths --- server/utils/fileUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index 9a349bd54..8cc25abd3 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -443,7 +443,7 @@ module.exports.encodeUriPath = (path) => { const uri = new URL('/', 'file://') // we assign the path here to assure that URL control characters like # are // actually interpreted as part of the URL path - uri.pathname = path + uri.pathname = path.replaceAll('%', '%25') return uri.pathname }