cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [20/37] git commit: ios: Fix handling of file URLs with encoded spaces
Date Wed, 23 Apr 2014 18:57:16 GMT
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 <iclelland@chromium.org>
Authored: Tue Apr 1 11:54:48 2014 -0400
Committer: Ian Clelland <iclelland@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]];
 
 }
 


Mime
View raw message