cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] wp7 commit: [CB-2736] Fixed error when resolving file uri from getPicture
Date Fri, 05 Apr 2013 00:45:21 GMT
Updated Branches:
  refs/heads/master 5c74aca15 -> 7de2a0895


[CB-2736] Fixed error when resolving file uri from getPicture


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/ab9ac6ef
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/ab9ac6ef
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/ab9ac6ef

Branch: refs/heads/master
Commit: ab9ac6ef492e159319eb37297a597922cce19710
Parents: 5c74aca
Author: Benn Mapes <benn.mapes@gmail.com>
Authored: Thu Apr 4 16:11:40 2013 -0700
Committer: Benn Mapes <benn.mapes@gmail.com>
Committed: Thu Apr 4 16:11:40 2013 -0700

----------------------------------------------------------------------
 templates/standalone/cordovalib/Commands/Camera.cs |    2 +-
 templates/standalone/cordovalib/Commands/File.cs   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/ab9ac6ef/templates/standalone/cordovalib/Commands/Camera.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/Camera.cs b/templates/standalone/cordovalib/Commands/Camera.cs
index 6fb0a00..5ff8045 100644
--- a/templates/standalone/cordovalib/Commands/Camera.cs
+++ b/templates/standalone/cordovalib/Commands/Camera.cs
@@ -462,7 +462,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                     isoFile.CreateDirectory(isoFolder);
                 }
 
-                string filePath = System.IO.Path.Combine("/" + isoFolder + "/", imageFileName);
+                string filePath = System.IO.Path.Combine("///" + isoFolder + "/", imageFileName);
 
                 using (var stream = isoFile.CreateFile(filePath))
                 {

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/ab9ac6ef/templates/standalone/cordovalib/Commands/File.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/File.cs b/templates/standalone/cordovalib/Commands/File.cs
index 3517244..62f8ab1 100644
--- a/templates/standalone/cordovalib/Commands/File.cs
+++ b/templates/standalone/cordovalib/Commands/File.cs
@@ -1078,7 +1078,7 @@ namespace WPCordovaClassLib.Cordova.Commands
 
             if (uri != null)
             {
-                // a single '/' is valid, however, '/someDir' is not, but '/tmp//somedir'
is valid
+                // a single '/' is valid, however, '/someDir' is not, but '/tmp//somedir'
and '///someDir' are valid
                 if (uri.StartsWith("/") && uri.IndexOf("//") < 0 && uri
!= "/")
                 {
                      Debug.WriteLine("Starts with / ::: " + uri);


Mime
View raw message