cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject [9/11] android commit: CB-1888: Can't add a Photo from a HTTPS address to Contact
Date Fri, 23 Nov 2012 03:29:00 GMT
CB-1888: Can't add a Photo from a HTTPS address to Contact


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

Branch: refs/heads/master
Commit: 5bebf11b370f20176f6375685b4659bc891a0bd6
Parents: 68161d2
Author: Simon MacDonald <simon.macdonald@gmail.com>
Authored: Wed Nov 21 11:27:25 2012 -0500
Committer: Simon MacDonald <simon.macdonald@gmail.com>
Committed: Thu Nov 22 22:23:51 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cordova/ContactAccessorSdk5.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/5bebf11b/framework/src/org/apache/cordova/ContactAccessorSdk5.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/ContactAccessorSdk5.java b/framework/src/org/apache/cordova/ContactAccessorSdk5.java
index 8497135..73d05bc 100644
--- a/framework/src/org/apache/cordova/ContactAccessorSdk5.java
+++ b/framework/src/org/apache/cordova/ContactAccessorSdk5.java
@@ -1579,7 +1579,7 @@ public class ContactAccessorSdk5 extends ContactAccessor {
             Uri uri = Uri.parse(path);
             return mApp.getActivity().getContentResolver().openInputStream(uri);
         }
-        if (path.startsWith("http:") || path.startsWith("file:")) {
+        if (path.startsWith("http:") || path.startsWith("https:") || path.startsWith("file:"))
{
             URL url = new URL(path);
             return url.openStream();
         }


Mime
View raw message