summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-03-10 22:45:59 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-03-10 22:45:59 +0100
commit88aee611f7c016d1f05202af9d9f647c8e5d26e2 (patch)
tree2c03eae168d09a245300ebb07fb36c27779ca3af /searx/webapp.py
parentcae22bfc7609d00f987e679cf6d048873d268d84 (diff)
downloadsearxng-88aee611f7c016d1f05202af9d9f647c8e5d26e2.tar.gz
searxng-88aee611f7c016d1f05202af9d9f647c8e5d26e2.zip
[mod] merge GET, POST vars
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 78c0c71f1..d2985c281 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -307,6 +307,11 @@ def render(template_name, override_theme=None, **kwargs):
@app.before_request
def pre_request():
+ # merge GET, POST vars
+ request.form = dict(request.form.items())
+ for k, v in request.args:
+ if k not in request.form:
+ request.form[k] = v
request.user_plugins = []
allowed_plugins = request.cookies.get('allowed_plugins', '').split(',')
@@ -507,7 +512,6 @@ def preferences():
autocomplete = ''
method = 'POST'
safesearch = '1'
-
for pd_name, pd in request.form.items():
if pd_name.startswith('category_'):
category = pd_name[9:]