summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-12-11 00:20:28 +0100
committerAdam Tauber <asciimoo@gmail.com>2017-12-11 00:20:28 +0100
commit2dc02f50c2a21d189552be3ca0b81805e4b80871 (patch)
treec01e8a7a298fd5038f8ae2f012139e92ba70a609
parent7752b0a8075b8813c3e74aebdd9655aecdf38444 (diff)
downloadsearxng-2dc02f50c2a21d189552be3ca0b81805e4b80871.tar.gz
searxng-2dc02f50c2a21d189552be3ca0b81805e4b80871.zip
[fix] do not save engine/plugin cookies as unknown settings options - fixes #1110
-rw-r--r--searx/preferences.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index bff05e6d5..70ccbb7be 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -304,7 +304,12 @@ class Preferences(object):
elif user_setting_name == 'disabled_plugins':
self.plugins.parse_cookie((input_data.get('disabled_plugins', ''),
input_data.get('enabled_plugins', '')))
- else:
+ elif not any(user_setting_name.startswith(x) for x in [
+ 'enabled_',
+ 'disabled_',
+ 'engine_',
+ 'category_',
+ 'plugin_']):
self.unknown_params[user_setting_name] = user_setting
def parse_form(self, input_data):