summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-12-16 18:56:30 +0100
committerGitHub <noreply@github.com>2022-12-16 18:56:30 +0100
commit2a51c856722df19831c20ba455f74a33180a4ec8 (patch)
tree8e67ab21354401f09dae10e31f58f0a3c66eea57
parent0dac581c0d4e2094d2feab3b19f6743d45bb07d9 (diff)
parent7cab51f98f43f2d476d62435bc762983000e9376 (diff)
downloadsearxng-2a51c856722df19831c20ba455f74a33180a4ec8.tar.gz
searxng-2a51c856722df19831c20ba455f74a33180a4ec8.zip
Merge pull request #1974 from fehho/query-string-deserial
[fix] Deserialize preferences which are explicitly blank strings
-rw-r--r--searx/preferences.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 8efa737fe..3d23c9331 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -441,7 +441,7 @@ class Preferences:
"""parse (base64) preferences from request (``flask.request.form['preferences']``)"""
bin_data = decompress(urlsafe_b64decode(input_data))
dict_data = {}
- for x, y in parse_qs(bin_data.decode('ascii')).items():
+ for x, y in parse_qs(bin_data.decode('ascii'), keep_blank_values=True).items():
dict_data[x] = y[0]
self.parse_dict(dict_data)