Simplification

pull/214/head
M66B 1 year ago
parent 97c18d6f1b
commit 26ae3cdc9d

@ -433,17 +433,15 @@ public class UriHelper {
for (String value : url.getQueryParameters(key)) { for (String value : url.getQueryParameters(key)) {
Log.i("Query " + key + "=" + value); Log.i("Query " + key + "=" + value);
if (clean != null && clean.contains(key)) if (clean == null || !clean.contains(key)) {
changed = true;
if (!changed) {
Uri suri = Uri.parse(value); Uri suri = Uri.parse(value);
if (suri != null && isHyperLink(suri)) { if (suri != null && isHyperLink(suri)) {
Uri s = sanitize(context, suri); Uri s = sanitize(context, suri);
return (s == null ? suri : s); return (s == null ? suri : s);
} }
builder.appendQueryParameter(key, value); builder.appendQueryParameter(key, value);
} } else
changed = true;
} }
first = false; first = false;
} }

Loading…
Cancel
Save