fix bug of searching based on tags

This commit is contained in:
doubaniux 2020-11-28 01:50:38 +01:00
parent 38e2af76e0
commit 0ff24a4b58

View file

@ -103,7 +103,7 @@ def search(request):
# test if user input an URL, if so jump to URL handling function
url_validator = URLValidator()
input_string = request.GET.get('q').strip()
input_string = request.GET.get('q', default='').strip()
try:
url_validator(input_string)
# validation success