summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 69ec915a7..70d2d662b 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -54,6 +54,7 @@ from datetime import datetime, timedelta
from timeit import default_timer
from html import escape
from io import StringIO
+import urllib
from urllib.parse import urlencode, urlparse
from pygments import highlight
@@ -246,7 +247,10 @@ def get_locale():
request.form['use-translation'] = 'oc'
locale = 'fr_FR'
- logger.debug("%s uses locale `%s` from %s", request.url, locale, locale_source)
+ logger.debug(
+ "%s uses locale `%s` from %s", urllib.parse.quote(request.url), locale, locale_source
+ )
+
return locale