commit
f39631bd23
@ -1532,7 +1532,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
|
||||
boolean containsPeriod = query.contains(".");
|
||||
boolean isIPAddress = (TextUtils.isDigitsOnly(query.replace(".", ""))
|
||||
&& (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)
|
||||
|| query.startsWith(Constants.FILE) || query.startsWith(Constants.HTTPS))
|
||||
|| isIPAddress;
|
||||
|
Loading…
x
Reference in New Issue
Block a user