mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-29 10:17:35 +00:00
fix(mail): escape angularJS directive for description
This commit is contained in:
@@ -556,7 +556,7 @@
|
||||
|
||||
ex = nil;
|
||||
request = [context request];
|
||||
params = [[[request contentAsString] stringWithoutHTMLInjection: NO] objectFromJSONString];
|
||||
params = [[[request contentAsString] stringWithoutHTMLInjection: NO stripAngular:NO] objectFromJSONString];
|
||||
if (params == nil)
|
||||
{
|
||||
ex = [NSException exceptionWithName: @"JSONParsingException"
|
||||
|
||||
@@ -182,7 +182,7 @@ _intValueFromHex (NSString *hexString)
|
||||
fActiveTasks = [folder activeTasks];
|
||||
|
||||
[calendar setObject: folderName forKey: @"id"];
|
||||
[calendar setObject: [fDisplayName stringWithoutHTMLInjection: YES] forKey: @"name"];
|
||||
[calendar setObject: [fDisplayName stringWithoutHTMLInjection: YES stripAngular:NO] forKey: @"name"];
|
||||
[calendar setObject: [folder calendarColor] forKey: @"color"];
|
||||
isActive = [NSNumber numberWithBool: [folder isActive]];
|
||||
[calendar setObject: isActive forKey: @"active"];
|
||||
|
||||
@@ -335,7 +335,7 @@
|
||||
|
||||
ex = nil;
|
||||
request = [context request];
|
||||
params = [[[request contentAsString] stringWithoutHTMLInjection: NO] objectFromJSONString];
|
||||
params = [[[request contentAsString] stringWithoutHTMLInjection: NO stripAngular:NO] objectFromJSONString];
|
||||
if (params == nil)
|
||||
{
|
||||
ex = [NSException exceptionWithName: @"JSONParsingException"
|
||||
|
||||
Reference in New Issue
Block a user