Strip URL args when saving new filter entry

This commit is contained in:
Arjan Schrijver
2025-12-25 14:45:08 +01:00
committed by Arjan Schrijver
parent 87754b654f
commit 41ab2ae09e
@@ -110,7 +110,7 @@ public class GBWebClient extends WebViewClient {
String defaultAction = sharedPreferences.getString("pref_key_internethelper_new_url_action", "deny");
urlIsAllowed = defaultAction.equals("allow");
URLFilterEntry filterEntry = new URLFilterEntry();
filterEntry.setUrl(requestedUri.toString());
filterEntry.setUrl(requestedUri.toString().replaceAll("\\?.*", ""));
filterEntry.setAllowed(urlIsAllowed);
DBHelper.store(filterEntry);
}