mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Rewrite Google non-com redirects
This commit is contained in:
parent
3863ac8757
commit
61c0f733cf
1 changed files with 8 additions and 0 deletions
|
@ -237,6 +237,14 @@ public class UriHelper {
|
|||
p = u.indexOf("/");
|
||||
}
|
||||
|
||||
changed = (result != null);
|
||||
url = (result == null ? uri : result);
|
||||
} else if ("https".equals(uri.getScheme()) &&
|
||||
uri.getHost() != null &&
|
||||
uri.getHost().startsWith("www.google.") &&
|
||||
uri.getQueryParameter("url") != null) {
|
||||
// Google non-com redirects
|
||||
Uri result = Uri.parse(uri.getQueryParameter("url"));
|
||||
changed = (result != null);
|
||||
url = (result == null ? uri : result);
|
||||
} else if (uri.getQueryParameterNames().size() == 1) {
|
||||
|
|
Loading…
Reference in a new issue