TASK22019: phase 9 harden file handlers hash guards and negative paths
This commit is contained in:
@@ -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" }
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user