summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-07-24 20:56:03 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-24 21:10:55 +0200
commit4231a5770bced12497cbd0a3000d12c8d3940295 (patch)
tree913ae0ca9f15ed4508df90acb0f0f29e5f41cdaf
parent55d1936bdc3acf05f8ec2c7cec51161d522d6f84 (diff)
[fix] sjp engine - convert enginename to a latin1 compliance name
The engine name is not only a *name* its also a identifier that is used in logs, HTTP headers and more. Unicode characters in the name of an engine could cause various issues. Closes: https://github.com/searxng/searxng/issues/1544 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r--searx/engines/sjp.py4
-rw-r--r--searx/settings.yml2
2 files changed, 4 insertions, 2 deletions
diff --git a/searx/engines/sjp.py b/searx/engines/sjp.py
index 8342a2819..6daa46e78 100644
--- a/searx/engines/sjp.py
+++ b/searx/engines/sjp.py
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
-"""Słownik Języka Polskiego (general)
+# lint: pylint
+"""Słownik Języka Polskiego
+Dictionary of the polish language from PWN (sjp.pwn)
"""
from lxml.html import fromstring
diff --git a/searx/settings.yml b/searx/settings.yml
index 21f0f20b3..949550831 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1732,7 +1732,7 @@ engines:
results: HTML
language: de
- - name: słownik języka polskiego
+ - name: sjp.pwn
engine: sjp
shortcut: sjp
base_url: https://sjp.pwn.pl/