We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5581957 commit 57eda78Copy full SHA for 57eda78
src/android/InAppBrowser.java
@@ -1114,8 +1114,10 @@ else if (url.startsWith("sms:")) {
1114
// 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]*://.*?$")) {
1116
if (allowedSchemes == null) {
1117
- String allowed = preferences.getString("AllowedSchemes", "");
1118
- allowedSchemes = allowed.split(",");
+ String allowed = preferences.getString("AllowedSchemes", null);
+ if(allowed != null) {
1119
+ allowedSchemes = allowed.split(",");
1120
+ }
1121
}
1122
if (allowedSchemes != null) {
1123
for (String scheme : allowedSchemes) {
0 commit comments