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:06 UTC
[10/37] git commit: CB-6199 iOS: Fix toNativeURL() not escaping
characters properly
CB-6199 iOS: Fix toNativeURL() not escaping characters properly
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/32ebfca3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/32ebfca3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/32ebfca3
Branch: refs/heads/master
Commit: 32ebfca352dd44bf5af481089f5c5a4a381830b4
Parents: 180948e
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Mar 7 11:13:21 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Mar 7 11:14:11 2014 -0500
----------------------------------------------------------------------
src/ios/CDVLocalFilesystem.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/32ebfca3/src/ios/CDVLocalFilesystem.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocalFilesystem.m b/src/ios/CDVLocalFilesystem.m
index 8c60da9..75bb237 100644
--- a/src/ios/CDVLocalFilesystem.m
+++ b/src/ios/CDVLocalFilesystem.m
@@ -79,7 +79,8 @@
[dirEntry setObject:lastPart forKey:@"name"];
[dirEntry setObject: [NSNumber numberWithInt:([fsName isEqualToString:@"temporary"] ? 0 : 1)] forKey: @"filesystem"];
[dirEntry setObject:fsName forKey: @"filesystemName"];
- [dirEntry setObject:[NSString stringWithFormat:@"file://%@",[self filesystemPathForFullPath:fullPath]] forKey:@"nativeURL"];
+ dirEntry[@"nativeURL"] = [[NSURL fileURLWithPath:[self filesystemPathForFullPath:fullPath]] absoluteString];
+
return dirEntry;
}