From dc2d83b08b02792e2854155fee6caa6dd6c6b647 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 7 Dec 2015 10:37:22 -0800 Subject: [PATCH] fix(search): URI encode search queries to prevent 400s --- src/flux/stores/search-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux/stores/search-view.coffee b/src/flux/stores/search-view.coffee index ebde82ba2..c388622e7 100644 --- a/src/flux/stores/search-view.coffee +++ b/src/flux/stores/search-view.coffee @@ -56,7 +56,7 @@ class SearchView extends ModelView NylasAPI.makeRequest method: 'GET' - path: "/threads/search?q=#{@_query}" + path: "/threads/search?q=#{encodeURIComponent(@_query)}" accountId: @_accountId json: true returnsModel: false