forked from zaclys/searxng
[fix] do not save engine/plugin cookies as unknown settings options - fixes #1110
This commit is contained in:
parent
7752b0a807
commit
2dc02f50c2
|
@ -304,7 +304,12 @@ class Preferences(object):
|
||||||
elif user_setting_name == 'disabled_plugins':
|
elif user_setting_name == 'disabled_plugins':
|
||||||
self.plugins.parse_cookie((input_data.get('disabled_plugins', ''),
|
self.plugins.parse_cookie((input_data.get('disabled_plugins', ''),
|
||||||
input_data.get('enabled_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
|
self.unknown_params[user_setting_name] = user_setting
|
||||||
|
|
||||||
def parse_form(self, input_data):
|
def parse_form(self, input_data):
|
||||||
|
|
Loading…
Reference in New Issue