Skip to content

Commit

Permalink
Toss more bogus queries
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalazar committed Oct 6, 2023
1 parent a959f9e commit 87d2de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports.handler = async (event, context) => {
const query = event.queryStringParameters.q;

// Some sanity checks
if (!query || query.trim() === 0) {
if (!query || query.trim() === 0 || query.length > 128) {
return;
}

Expand Down

0 comments on commit 87d2de5

Please sign in to comment.