Skip to content

Commit c6dad22

Browse files
author
Ki Kouch
committed
Encode URL
1 parent 0cdd110 commit c6dad22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ios/SafariViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ - (void) show:(CDVInvokedUrlCommand*)command {
2222
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"url must start with http or https"] callbackId:command.callbackId];
2323
return;
2424
}
25+
urlString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
2526
NSURL *url = [NSURL URLWithString:urlString];
2627
if (url == nil) {
2728
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"bad url"] callbackId:command.callbackId];

0 commit comments

Comments
 (0)