mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-08-02 22:51:45 +00:00
Fix percent encoding in X-Accel paths
This commit is contained in:
parent
d063d851e1
commit
10e94bd036
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ module.exports.encodeUriPath = (path) => {
|
||||||
const uri = new URL('/', 'file://')
|
const uri = new URL('/', 'file://')
|
||||||
// we assign the path here to assure that URL control characters like # are
|
// we assign the path here to assure that URL control characters like # are
|
||||||
// actually interpreted as part of the URL path
|
// actually interpreted as part of the URL path
|
||||||
uri.pathname = path
|
uri.pathname = path.replaceAll('%', '%25')
|
||||||
return uri.pathname
|
return uri.pathname
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue