Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit 4669200

Browse files
committed
do not let fuzzers fuzzz for add-on search suggestions on Marketplace (bug 809705)
1 parent 75d948d commit 4669200

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/search/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ def ajax_search_suggestions(request):
435435

436436
cat = request.GET.get('cat', 'all')
437437

438+
# Don't let Marketplace query any other types.
439+
if settings.MARKETPLACE:
440+
cat = 'apps'
441+
438442
if cat != 'apps':
439443
# Applications.
440444
for a in amo.APP_USAGE:

0 commit comments

Comments
 (0)