cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [10/37] git commit: CB-6199 iOS: Fix toNativeURL() not escaping characters properly
Date Wed, 23 Apr 2014 18:57:06 GMT
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 <agrieve@chromium.org>
Authored: Fri Mar 7 11:13:21 2014 -0500
Committer: Andrew Grieve <agrieve@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;
 }


Mime
View raw message