From 08de8f252bc1227194d6bd4d023224d3feff741a Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 11 May 2019 12:45:00 +0200 Subject: [PATCH] routing: if a query contatins space or / it is a question --- lib/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config.py b/lib/config.py index 840595f..3f8e627 100644 --- a/lib/config.py +++ b/lib/config.py @@ -121,9 +121,10 @@ _CONFIG = { ("", "learnxiny"), ], "routing.post": [ - ("^[^/]*$", "unknown"), + ("^[^/ +]*$", "unknown"), ("^[a-z][a-z]-[a-z][a-z]$", "translation"), ], + "routing.default": "question", "upstream.url": "https://cheat.sh", "upstream.timeout": 5, "search.limit": 20,