(iOS) Prevent "http://localhost:8080/.//assets/hogehoge.png"
MODIFY
src/ios/GoogleMaps/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
//url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", currentURL, iconPath]];
currentURL = [NSString stringWithFormat:@"%@/%@", currentURL, iconPath];
+ currentURL = [currentURL regReplace:@"\\/.\\/" replaceTxt:@"/" options:0];
+ currentURL = [currentURL regReplace:@"\\/+" replaceTxt:@"/" options:0];
currentURL = [currentURL stringByReplacingOccurrencesOfString:@":/" withString:@"://"];
currentURL = [currentURL stringByReplacingOccurrencesOfString:@":///" withString:@"://"];
//NSLog(@"currentURL = %@", currentURL);
// Load the icon from over the internet
//
+ iconPath = [iconPath regReplace:@"\\/.\\/" replaceTxt:@"/" options:0];
+ iconPath = [iconPath regReplace:@"\\/+" replaceTxt:@"/" options:0];
+ iconPath = [iconPath stringByReplacingOccurrencesOfString:@":/" withString:@"://"];
NSURL *url = [NSURL URLWithString:iconPath];
[self downloadImageWithURL:url completionBlock:^(BOOL succeeded, UIImage *image) {

(iOS) Prevent "http://localhost:8080/.//assets/hogehoge.png"