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

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

No files matched your search

+1 -1
View File
@@ -485,7 +485,7 @@ static Class SOGoContactGCSEntryK = Nil;
co = [self clientObject];
card = [co vCard];
request = [context request];
params = [[request contentAsString] objectFromJSONString];
params = [[[request contentAsString] stringWithoutHTMLInjection: YES] objectFromJSONString];
forceSave = [[params objectForKey: @"ignoreDuplicate"] boolValue];
[self setAttributes: params];
+1 -1
View File
@@ -339,7 +339,7 @@
[list retain];
request = [context request];
params = [[request contentAsString] objectFromJSONString];
params = [[[request contentAsString] stringWithoutHTMLInjection: YES] objectFromJSONString];
o = [params objectForKey: @"refs"];
if (![o isKindOfClass: [NSArray class]])