Merge pull request #1584 from minsOne/master
fixed crash on ios7 user device
This commit is contained in:
commit
d8dc6a25aa
|
@ -61,7 +61,7 @@
|
|||
if (NSClassFromString(@"NSURLComponents") && [NSURLComponents instancesRespondToSelector:@selector(string)]) {
|
||||
NSURLComponents *urlComponents = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
|
||||
urlComponents.query = nil; // Strip out query parameters.
|
||||
return urlComponents.string;
|
||||
return [urlComponents.URL absoluteString];
|
||||
} else {
|
||||
return [url absoluteString];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue