diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b308e153..55068d5ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Changelog * *storage/open* will also check media storage * Clear restrictions will clear whitelists ([issue](/../../issues/1375)) * Whitelist management requires a [Pro license](http://www.xprivacy.eu/) +* Limit parameters to 250 characters (some applications use long Javascript for loadUrl) * Updated Dutch translation * Updated Lithuanian translation * Updated Russian translation diff --git a/src/biz/bokhorst/xprivacy/PrivacyManager.java b/src/biz/bokhorst/xprivacy/PrivacyManager.java index c5a8f94f7..6cdfb05b1 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyManager.java +++ b/src/biz/bokhorst/xprivacy/PrivacyManager.java @@ -267,6 +267,10 @@ public static boolean getRestrictionExtra(final XHook hook, int uid, String rest } else if (getHook(restrictionName, methodName) == null) Util.log(hook, Log.WARN, "Unknown method=" + methodName); + // Check extra + if (extra != null && extra.length() > 250) + extra = extra.substring(0, 250) + "..."; + // Check cache boolean cached = false; CRestriction key = new CRestriction(uid, restrictionName, methodName, extra);