diff --git a/src/common/mac/SymbolCollectorClient.m b/src/common/mac/SymbolCollectorClient.m index b997607f..70f511f1 100644 --- a/src/common/mac/SymbolCollectorClient.m +++ b/src/common/mac/SymbolCollectorClient.m @@ -70,11 +70,16 @@ withAPIKey:(NSString*)APIKey withDebugFile:(NSString*)debugFile withDebugID:(NSString*)debugID { + NSString* escapedDebugFile = + [debugFile stringByAddingPercentEncodingWithAllowedCharacters: + [NSCharacterSet URLHostAllowedCharacterSet]]; + NSURL* URL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/v1/symbols/%@/%@:checkStatus" @"?key=%@", - APIURL, debugFile, debugID, APIKey]]; + APIURL, escapedDebugFile, debugID, + APIKey]]; HTTPGetRequest* getRequest = [[HTTPGetRequest alloc] initWithURL:URL]; NSError* error = nil;