Merge "Fix logic inversion bug from Android 1.0." into rvc-dev am: 672582e4e1
Change-Id: I4ac7dcd0a93f9d30bc77771db9e59fe9d7aa8f8e
This commit is contained in:
@@ -306,7 +306,7 @@ public class UrlQuerySanitizer {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
int length = value.length();
|
int length = value.length();
|
||||||
if ((mFlags & SCRIPT_URL_OK) != 0) {
|
if ((mFlags & SCRIPT_URL_OK) == 0) {
|
||||||
if (length >= MIN_SCRIPT_PREFIX_LENGTH) {
|
if (length >= MIN_SCRIPT_PREFIX_LENGTH) {
|
||||||
String asLower = value.toLowerCase(Locale.ROOT);
|
String asLower = value.toLowerCase(Locale.ROOT);
|
||||||
if (asLower.startsWith(JAVASCRIPT_PREFIX) ||
|
if (asLower.startsWith(JAVASCRIPT_PREFIX) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user