You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/11/21 17:27:39 UTC
android commit: CB-1888: Can't add a Photo from a HTTPS address to
Contact
Updated Branches:
refs/heads/master d9107bcac -> 538e90f23
CB-1888: Can't add a Photo from a HTTPS address to Contact
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/538e90f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/538e90f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/538e90f2
Branch: refs/heads/master
Commit: 538e90f23aaeebe4cc08ad87d17d0ab2dde6185d
Parents: d9107bc
Author: Simon MacDonald <si...@gmail.com>
Authored: Wed Nov 21 11:27:25 2012 -0500
Committer: Simon MacDonald <si...@gmail.com>
Committed: Wed Nov 21 11:27:25 2012 -0500
----------------------------------------------------------------------
.../org/apache/cordova/ContactAccessorSdk5.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/538e90f2/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();
}