mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[mod] preferences.py: check language setting with a regex instead of match_language
This commit is contained in:
@@ -11,6 +11,8 @@ from codecs import getincrementalencoder
|
||||
from searx import logger
|
||||
|
||||
|
||||
VALID_LANGUAGE_CODE = re.compile(r'^[a-z]{2,3}(-[a-zA-Z]{2})?$')
|
||||
|
||||
logger = logger.getChild('webutils')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user