mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 02:15:36 +00:00
fix(security): Prevent user to add html script in its preferences
This commit is contained in:
@@ -1742,9 +1742,12 @@ static NSArray *reminderValues = nil;
|
||||
- (id <WOActionResults>) saveAction
|
||||
{
|
||||
id <WOActionResults> results;
|
||||
NSString *requestStr;
|
||||
id o, v;
|
||||
|
||||
o = [[[context request] contentAsString] objectFromJSONString];
|
||||
requestStr = [[context request] contentAsString];
|
||||
requestStr = [requestStr stringWithoutHTMLInjection: NO];
|
||||
o = [requestStr objectFromJSONString];
|
||||
results = nil;
|
||||
|
||||
// Proceed with data sanitization of the "defaults"
|
||||
|
||||
Reference in New Issue
Block a user