mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Strip URL args when saving new filter entry
This commit is contained in:
committed by
Arjan Schrijver
parent
87754b654f
commit
41ab2ae09e
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user