Skip to content

Commit

Permalink
Merge pull request #269 from timbru31/fix/CB-14061-handle-more-url-sc…
Browse files Browse the repository at this point in the history
…hemes

CB-14061: (android) comply with RFC 3986 for custom URL scheme handling
  • Loading branch information
jcesarmobile authored May 19, 2018
2 parents 33aff11 + f57ede9 commit 26cf6e4
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", null);
if(allowed != null) {
Expand Down

0 comments on commit 26cf6e4

Please sign in to comment.