mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-12 04:20:36 +00:00
fix: webdav MOVE/COPY escaping bug
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
This commit is contained in:
@@ -939,6 +939,7 @@ async function handleWebDavServer(filePath, req, res) {
|
||||
res.status(400).end('Bad Request: Invalid destination URI');
|
||||
return;
|
||||
}
|
||||
destinationPath = decodeURI(destinationPath);
|
||||
|
||||
// Parse Overwrite header (T = true, F = false, default = T)
|
||||
const overwriteHeader = req.headers.overwrite;
|
||||
@@ -1034,6 +1035,7 @@ async function handleWebDavServer(filePath, req, res) {
|
||||
res.status(400).end('Bad Request: Invalid destination URI');
|
||||
return;
|
||||
}
|
||||
destinationPath = decodeURI(destinationPath);
|
||||
|
||||
// Parse Overwrite header (T = true, F = false, default = T)
|
||||
const overwriteHeader = req.headers.overwrite;
|
||||
|
||||
Reference in New Issue
Block a user