From 27500c2990249f23c90dbb066ce6312e440e28f5 Mon Sep 17 00:00:00 2001 From: stevepodell Date: Thu, 5 Apr 2018 11:54:32 -0700 Subject: [PATCH] In file AppBrowser.java: New code within shouldOverrideUrlLoading() to check for whitelisting custom schemes via a new "AllowedSchemes" preference configuration item. Allows custom schemes like "mycoolapp://" or "wevotetwitterscheme://" In file inappbrowser.js: Added new "customscheme" channel. --- src/android/InAppBrowser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index 2d9c144..86a6745 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -1112,7 +1112,7 @@ public class InAppBrowser extends CordovaPlugin { } } // Test for whitelisted custom scheme names like mycoolapp:// or twitteroauthresponse:// (Twitter Oauth Response) - else if (!url.startsWith("http:") && !url.startsWith("https:") && url.matches("^[a-z]://.*?$")) { + else if (!url.startsWith("http:") && !url.startsWith("https:") && url.matches("^[a-z]*://.*?$")) { if (allowedSchemes == null) { String allowed = preferences.getString("AllowedSchemes", ""); allowedSchemes = allowed.split(",");