fix: about scheme
This commit is contained in:
parent
e71e09c2e8
commit
33eb739824
@ -1487,7 +1487,7 @@ public abstract class BrowserActivity extends ThemableActivity implements Browse
|
|||||||
boolean containsPeriod = query.contains(".");
|
boolean containsPeriod = query.contains(".");
|
||||||
boolean isIPAddress = (TextUtils.isDigitsOnly(query.replace(".", ""))
|
boolean isIPAddress = (TextUtils.isDigitsOnly(query.replace(".", ""))
|
||||||
&& (query.replace(".", "").length() >= 4) && query.contains("."));
|
&& (query.replace(".", "").length() >= 4) && query.contains("."));
|
||||||
boolean aboutScheme = query.contains("about:");
|
boolean aboutScheme = query.startsWith("about:");
|
||||||
boolean validURL = (query.startsWith("ftp://") || query.startsWith(Constants.HTTP)
|
boolean validURL = (query.startsWith("ftp://") || query.startsWith(Constants.HTTP)
|
||||||
|| query.startsWith(Constants.FILE) || query.startsWith(Constants.HTTPS))
|
|| query.startsWith(Constants.FILE) || query.startsWith(Constants.HTTPS))
|
||||||
|| isIPAddress;
|
|| isIPAddress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user