cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] cordova-plugin-file-transfer git commit: cleanUrl needs relative path for local download
Date Tue, 06 Jan 2015 21:29:55 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 2527338f4 -> 046e9ae59


cleanUrl needs relative path for local download


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/355ed389
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/355ed389
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/355ed389

Branch: refs/heads/master
Commit: 355ed3897dc911a7d426248970493db71e63ad79
Parents: 2309e0e
Author: Dov Dukes <ddukes@chabad.org>
Authored: Wed Apr 2 16:54:48 2014 -0400
Committer: Dov Dukes <ddukes@chabad.org>
Committed: Wed Apr 2 16:54:48 2014 -0400

----------------------------------------------------------------------
 src/wp/FileTransfer.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/355ed389/src/wp/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs
index f8b6ed5..69bdd53 100644
--- a/src/wp/FileTransfer.cs
+++ b/src/wp/FileTransfer.cs
@@ -397,7 +397,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                         else
                         {
                             // need to unpack resource from the dll
-                            string cleanUrl = downloadOptions.Url.Replace("x-wmapp0:", "").Replace("file:",
"");
+                            string cleanUrl = downloadOptions.Url.Replace("x-wmapp0:", "").Replace("file:",
"").Replace("///","").Replace("//","");
                             Uri uri = new Uri(cleanUrl, UriKind.Relative);
                             var resource = Application.GetResourceStream(uri);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message