fix bug of searching based on tags
This commit is contained in:
parent
38e2af76e0
commit
0ff24a4b58
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue