fix code scanning alert #11

deepsource-autofix-76c6eb20
Dan Gowans 2022-10-07 15:28:26 -04:00
parent 1c3d158b11
commit 947eea600c
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
workOrderId
}, (responseJSON) => {
if (responseJSON.success) {
window.location.href = urlPrefix + "/workOrders/" + workOrderId;
window.location.href = urlPrefix + "/workOrders/" + encodeURIComponent(workOrderId);
}
else {
bulmaJS.alert({

View File

@ -71,7 +71,7 @@ declare const bulmaJS: BulmaJS;
},
(responseJSON: { success: boolean; errorMessage?: string }) => {
if (responseJSON.success) {
window.location.href = urlPrefix + "/workOrders/" + workOrderId;
window.location.href = urlPrefix + "/workOrders/" + encodeURIComponent(workOrderId);
} else {
bulmaJS.alert({
title: "Error Closing Work Order",

File diff suppressed because one or more lines are too long