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