You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:16 UTC
[20/37] git commit: ios: Fix handling of file URLs with encoded spaces
ios: Fix handling of file URLs with encoded spaces
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/17a49917
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/17a49917
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/17a49917
Branch: refs/heads/master
Commit: 17a49917d1f4ce91c64cce6cd4bf0a4f37a53480
Parents: e631901
Author: Ian Clelland <ic...@chromium.org>
Authored: Tue Apr 1 11:54:48 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Thu Apr 3 09:18:42 2014 -0400
----------------------------------------------------------------------
src/ios/CDVLocalFilesystem.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/17a49917/src/ios/CDVLocalFilesystem.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocalFilesystem.m b/src/ios/CDVLocalFilesystem.m
index 5e3b15f..2b7f940 100644
--- a/src/ios/CDVLocalFilesystem.m
+++ b/src/ios/CDVLocalFilesystem.m
@@ -130,7 +130,7 @@
- (CDVFilesystemURL *)URLforFilesystemPath:(NSString *)path
{
- return [self URLforFullPath:[self fullPathForFileSystemPath:path]];
+ return [self URLforFullPath:[[self fullPathForFileSystemPath:path] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
}