fix(vulnerability): prevent xss with events, tasks and contacts categories

This commit is contained in:
Hivert Quentin
2025-12-16 10:25:49 +01:00
parent 47239ba0fd
commit e9b3f2a43d
4 changed files with 4 additions and 4 deletions

View File

@@ -335,7 +335,7 @@
ex = nil;
request = [context request];
params = [[request contentAsString] objectFromJSONString];
params = [[[request contentAsString] stringWithoutHTMLInjection: NO] objectFromJSONString];
if (params == nil)
{
ex = [NSException exceptionWithName: @"JSONParsingException"