diff options
| -rw-r--r-- | .config.sh | 2 | ||||
| -rw-r--r-- | docs/build-templates/searx.rst | 6 | ||||
| -rw-r--r-- | searx/preferences.py | 6 | ||||
| -rw-r--r-- | searx/settings.yml | 2 | ||||
| -rwxr-xr-x | utils/lib.sh | 2 |
5 files changed, 10 insertions, 8 deletions
diff --git a/.config.sh b/.config.sh index e9e79d82c..3a17b8b29 100644 --- a/.config.sh +++ b/.config.sh @@ -25,7 +25,7 @@ fi # searx.sh # --------- -# SEARX_INTERNAL_URL="127.0.0.1:8888" +# SEARX_INTERNAL_HTTP="127.0.0.1:8888" # SEARX_SETTINGS_TEMPLATE="${REPO_ROOT}/utils/templates/etc/searx/use_default_settings.yml" # Only change, if you maintain a searx brand in your searx fork (GIT_URL) which diff --git a/docs/build-templates/searx.rst b/docs/build-templates/searx.rst index ead096ed8..33ed9601c 100644 --- a/docs/build-templates/searx.rst +++ b/docs/build-templates/searx.rst @@ -176,7 +176,7 @@ ${fedora_build} # disable debug $ sudo -H sed -i -e \"s/debug : True/debug : False/g\" \"$SEARX_SETTINGS_PATH\" -Open WEB browser and visit http://$SEARX_INTERNAL_URL . If you are inside a +Open WEB browser and visit http://$SEARX_INTERNAL_HTTP . If you are inside a container or in a script, test with curl: .. tabs:: @@ -185,13 +185,13 @@ container or in a script, test with curl: .. code-block:: sh - $ xdg-open http://$SEARX_INTERNAL_URL + $ xdg-open http://$SEARX_INTERNAL_HTTP .. group-tab:: curl .. code-block:: none - $ curl --location --verbose --head --insecure $SEARX_INTERNAL_URL + $ curl --location --verbose --head --insecure $SEARX_INTERNAL_HTTP * Trying 127.0.0.1:8888... * TCP_NODELAY set diff --git a/searx/preferences.py b/searx/preferences.py index 46ce53ab3..b63bd446b 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -437,10 +437,10 @@ class Preferences: def parse_encoded_data(self, input_data): """parse (base64) preferences from request (``flask.request.form['preferences']``)""" - decoded_data = decompress(urlsafe_b64decode(input_data.encode())) + bin_data = decompress(urlsafe_b64decode(input_data)) dict_data = {} - for x, y in parse_qs(decoded_data).items(): - dict_data[x.decode()] = y[0].decode() + for x, y in parse_qs(bin_data.decode('ascii')).items(): + dict_data[x] = y[0] self.parse_dict(dict_data) def parse_dict(self, input_data): diff --git a/searx/settings.yml b/searx/settings.yml index 976d81678..4347ab78e 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1456,7 +1456,7 @@ engines: timeout: 5.0 disabled: true - - name: slownik jezyka polskiego + - name: słownik języka polskiego engine: sjp shortcut: sjp base_url: https://sjp.pwn.pl/ diff --git a/utils/lib.sh b/utils/lib.sh index 8867bfe8e..b75e3376b 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -270,6 +270,8 @@ prefix_stdout () { (while IFS= read line; do echo -e "${prefix}$line" done) + # some piped commands hide the cursor, show cursory when the stream ends + echo -en "\e[?25h" } append_line() { |