TASK22019: phase 9 harden file handlers hash guards and negative paths

This commit is contained in:
2026-03-13 12:17:51 +00:00
parent 51269db849
commit c73313b0fa
7 changed files with 340 additions and 75 deletions
+3 -3
View File
@@ -134,7 +134,7 @@ export const uploadFiles = async (
const config = {
method: "post",
url: queryUrl,
url: queryUrl + hashAPIPath(queryUrl),
data: formData,
headers: { "content-type": "multipart/form-data" }
};
@@ -162,7 +162,7 @@ export const uploadSingleFile = async (filesObj, containerID, casefolderID) => {
const config = {
method: "post",
url: queryUrl,
url: queryUrl + hashAPIPath(queryUrl),
data: formData,
headers: { "content-type": "multipart/form-data" }
};
@@ -191,7 +191,7 @@ export const uploadRepFiles = async (
const config = {
method: "post",
url: queryUrl,
url: queryUrl + hashAPIPath(queryUrl),
data: formData,
headers: { "content-type": "multipart/form-data" }
};
+3 -1
View File
@@ -280,7 +280,7 @@ export const sendRepCompleteMessage = async (
caseReference,
fileName
) => {
var queryUrl =
var hashQueryPath =
"/api/file/createrepcompletemessage_api?container=" +
containerID +
"&tempcaseref=" +
@@ -288,6 +288,8 @@ export const sendRepCompleteMessage = async (
"&repid=" +
fileName;
var queryUrl = hashQueryPath + hashAPIPath(hashQueryPath);
var config = {
method: "get",
url: queryUrl