Skip to content

Commit

Permalink
fix space in url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cheekiatng committed Apr 22, 2015
1 parent cb60533 commit 890fd82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iphone/Classes/TiUtils.m
@@ -1,6 +1,6 @@
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2014 by Appcelerator, Inc. All Rights Reserved.
* Copyright (c) 2009-2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
Expand Down Expand Up @@ -795,7 +795,7 @@ +(NSURL*)toURL:(NSString *)relativeString relativeToURL:(NSURL *)rootPath
}
}

result = [NSURL URLWithString:relativeString relativeToURL:rootPath];
result = [NSURL URLWithString:[relativeString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] relativeToURL:rootPath];

//TIMOB-18262
if (result && ([[result scheme] isEqualToString:@"file"])){
Expand Down

0 comments on commit 890fd82

Please sign in to comment.