remove KeySourceModel at openPage action level

This commit is contained in:
Kyle Matthew Hedden 2020-11-10 13:28:15 -05:00
parent 773410168c
commit 56bdbb49d7

View File

@ -35,6 +35,16 @@
return NO;
}
- (void)openPageAction:(NSDictionary *)actionInformation additionalData:(NSDictionary *)additionalData delegateObject:(DelegateObject *)delegateObject {
// Cleanup the source model data to prevent it from being accidentally auto-forwarded in openPage network requests by blind additionalData insertions. (https://onejira.verizon.com/browse/CXTDT-135642, https://onejira.verizon.com/browse/CXTDT-136001).
if (additionalData[KeySourceModel]) {
NSMutableDictionary *cleanedData = [additionalData mutableCopy];
[cleanedData removeObjectForKey:KeySourceModel];
additionalData = cleanedData;
}
[super openPageAction:actionInformation additionalData:additionalData delegateObject:delegateObject];
}
- (void)popupAction:(nullable NSDictionary *)actionInformation additionalData:(nullable NSDictionary *)additionalData delegateObject:(nullable DelegateObject *)delegateObject {
// Perform a popup.
NSString *pageTypeForPopup = [actionInformation stringForKey:KeyPageType];