Merge pull request #598 from coreos-inc/limitbadquery
Prevent unlimited insane query from running and fix tests
This commit is contained in:
commit
3e7a95407b
4 changed files with 15 additions and 8 deletions
|
@ -329,7 +329,8 @@ def get_search():
|
|||
username = user.username
|
||||
|
||||
results = []
|
||||
conduct_repo_search(username, query, results)
|
||||
if query:
|
||||
conduct_repo_search(username, query, results)
|
||||
|
||||
data = {
|
||||
"query": query,
|
||||
|
|
Reference in a new issue