Skip to content

Commit

Permalink
CB-14061: (android) comply with RFC 3986 for custom URL scheme handling
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed May 2, 2018
1 parent 5581957 commit f57ede9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/InAppBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ else if (url.startsWith("sms:")) {
}
}
// 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-Za-z0-9+.-]*://.*?$")) {
if (allowedSchemes == null) {
String allowed = preferences.getString("AllowedSchemes", "");
allowedSchemes = allowed.split(",");
Expand Down

0 comments on commit f57ede9

Please sign in to comment.