url encode/decode correctly paths for hashed values

This commit is contained in:
2025-09-11 10:50:45 +01:00
parent c0dbaa2c3f
commit f8769d0bf1
4 changed files with 37 additions and 48 deletions
+2 -5
View File
@@ -17,12 +17,9 @@ ApiProxy.get(async (req, res) => {
"/api/file/deleteblob?container=" +
containerName +
"&casefolderID=" +
casefolderID +
encodeURIComponent(casefolderID) +
"&blobname=" +
blobName;
//console.log(hashAPIPath(checkquerypath), checkHash);
//console.log(hashAPIPath(checkquerypath) == "&hash=" + checkHash);
encodeURIComponent(blobName);
if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
await deleteBlob(
+2 -8
View File
@@ -20,15 +20,9 @@ ApiProxy.get(async (req, res) => {
"/api/file/downloadblob?container=" +
containerName +
"&casefolderID=" +
casefolderID +
encodeURIComponent(casefolderID) +
"&blobname=" +
blobName.trim();
// console.log(checkquerypath);
// console.log(hashAPIPath(checkquerypath));
// console.log(req.query);
encodeURIComponent(blobName.trim());
if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
const bloblocation =