Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Corrected host redirects check
Browse files Browse the repository at this point in the history
Auditors: @bbondy
  • Loading branch information
SergeyZhukovsky committed Sep 9, 2016
1 parent e548192 commit a360832
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ public boolean redirectUrlToBrowser(URL url) {
String host = url.getHost();

for(String redirectHost : mFallbackRedirectHosts) {
if (host.endsWith(redirectHost)) {
if (host.endsWith("." + redirectHost)) {
return true;
}
}
Expand Down

1 comment on commit a360832

@bbondy
Copy link
Member

@bbondy bbondy commented on a360832 Sep 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to match google.com in this case? In which case it wouldn't match because you are looking for .google.com

Please sign in to comment.