|
|
@ -401,7 +401,6 @@ public class UriHelper {
|
|
|
|
if (url.isOpaque() || !isHyperLink(url))
|
|
|
|
if (url.isOpaque() || !isHyperLink(url))
|
|
|
|
return uri;
|
|
|
|
return uri;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Uri.Builder builder = url.buildUpon();
|
|
|
|
Uri.Builder builder = url.buildUpon();
|
|
|
|
|
|
|
|
|
|
|
|
builder.clearQuery();
|
|
|
|
builder.clearQuery();
|
|
|
@ -427,21 +426,18 @@ public class UriHelper {
|
|
|
|
FACEBOOK_WHITELIST_PATH.contains(path) &&
|
|
|
|
FACEBOOK_WHITELIST_PATH.contains(path) &&
|
|
|
|
!FACEBOOK_WHITELIST_QUERY.contains(lkey)) ||
|
|
|
|
!FACEBOOK_WHITELIST_QUERY.contains(lkey)) ||
|
|
|
|
("store.steampowered.com".equals(host) &&
|
|
|
|
("store.steampowered.com".equals(host) &&
|
|
|
|
"snr".equals(lkey)))
|
|
|
|
"snr".equals(lkey)) ||
|
|
|
|
|
|
|
|
(clean != null && clean.contains(key)))
|
|
|
|
changed = true;
|
|
|
|
changed = true;
|
|
|
|
else if (!TextUtils.isEmpty(key))
|
|
|
|
else if (!TextUtils.isEmpty(key))
|
|
|
|
for (String value : url.getQueryParameters(key)) {
|
|
|
|
for (String value : url.getQueryParameters(key)) {
|
|
|
|
Log.i("Query " + key + "=" + value);
|
|
|
|
Log.i("Query " + key + "=" + value);
|
|
|
|
|
|
|
|
Uri suri = Uri.parse(value);
|
|
|
|
if (clean == null || !clean.contains(key)) {
|
|
|
|
if (suri != null && isHyperLink(suri)) {
|
|
|
|
Uri suri = Uri.parse(value);
|
|
|
|
Uri s = sanitize(context, suri);
|
|
|
|
if (suri != null && isHyperLink(suri)) {
|
|
|
|
return (s == null ? suri : s);
|
|
|
|
Uri s = sanitize(context, suri);
|
|
|
|
}
|
|
|
|
return (s == null ? suri : s);
|
|
|
|
builder.appendQueryParameter(key, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
builder.appendQueryParameter(key, value);
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
changed = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
first = false;
|
|
|
|
first = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|