[#1609] Only do user_search with meaningful 'term'

The front-end only sends queries with len(term) > 3 anyway. But
bad clients (googlebot) were accessing user_search with no
params, and causing a mongo error due to the scope of the query.

Signed-off-by: Dave Brondsema dbrondsema@geek.net

Dave Brondsema Dave Brondsema 2011-03-02

changed Allura/allura/controllers/project.py
changed Allura/allura/tests/functional/test_home.py
Allura/allura/controllers/project.py Diff Switch to side-by-side view
Loading...
Allura/allura/tests/functional/test_home.py Diff Switch to side-by-side view
Loading...