mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
settings changed
This commit is contained in:
parent
6b71721ce8
commit
1aaa07361c
2 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ search:
|
||||||
# remove format to deny access, use lower case.
|
# remove format to deny access, use lower case.
|
||||||
# formats: [html, csv, json, rss]
|
# formats: [html, csv, json, rss]
|
||||||
formats:
|
formats:
|
||||||
- html
|
- json
|
||||||
|
|
||||||
server:
|
server:
|
||||||
# If you change port, bind_address or base_url don't forget to rebuild
|
# If you change port, bind_address or base_url don't forget to rebuild
|
||||||
|
|
|
@ -658,8 +658,8 @@ def search():
|
||||||
if output_format not in OUTPUT_FORMATS:
|
if output_format not in OUTPUT_FORMATS:
|
||||||
output_format = 'html'
|
output_format = 'html'
|
||||||
|
|
||||||
if output_format not in settings['search']['formats']:
|
# if output_format not in settings['search']['formats']:
|
||||||
flask.abort(403)
|
# flask.abort(403)
|
||||||
|
|
||||||
# check if there is query (not None and not an empty string)
|
# check if there is query (not None and not an empty string)
|
||||||
if not request.form.get('q'):
|
if not request.form.get('q'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue