|
@@ -20,7 +20,7 @@ const lsxValidator = [
|
|
|
.optional()
|
|
.optional()
|
|
|
.customSanitizer((options) => {
|
|
.customSanitizer((options) => {
|
|
|
try {
|
|
try {
|
|
|
- const jsonData: LsxApiOptions = JSON.parse(options);
|
|
|
|
|
|
|
+ const jsonData: LsxApiOptions = options;
|
|
|
|
|
|
|
|
for (const key in jsonData) {
|
|
for (const key in jsonData) {
|
|
|
jsonData[key] = filterXSS.process(jsonData[key]);
|
|
jsonData[key] = filterXSS.process(jsonData[key]);
|