Skip to content

Commit 27500c2

Browse files
committed
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.
1 parent 4c4bee5 commit 27500c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/InAppBrowser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ else if (url.startsWith("sms:")) {
11121112
}
11131113
}
11141114
// Test for whitelisted custom scheme names like mycoolapp:// or twitteroauthresponse:// (Twitter Oauth Response)
1115-
else if (!url.startsWith("http:") && !url.startsWith("https:") && url.matches("^[a-z]://.*?$")) {
1115+
else if (!url.startsWith("http:") && !url.startsWith("https:") && url.matches("^[a-z]*://.*?$")) {
11161116
if (allowedSchemes == null) {
11171117
String allowed = preferences.getString("AllowedSchemes", "");
11181118
allowedSchemes = allowed.split(",");

0 commit comments

Comments
 (0)