We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ecdca commit 82da371Copy full SHA for 82da371
Leanplum-SDK/Classes/LPMessageTemplates.m
@@ -323,7 +323,8 @@ - (void)defineActions
323
withResponder:^BOOL(LPActionContext *context) {
324
@try {
325
dispatch_async(dispatch_get_main_queue(), ^{
326
- NSURL *url = [NSURL URLWithString:[context stringNamed:LPMT_ARG_URL]];
+ NSString *encodedURLString = [[context stringNamed:LPMT_ARG_URL] stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]];
327
+ NSURL *url = [NSURL URLWithString: encodedURLString];
328
if ([[UIApplication sharedApplication] respondsToSelector:@selector(openURL:options:completionHandler:)]) {
329
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
330
} else {
0 commit comments