From 7c746f42f23b6b0cc2013282c05bd2b46ef85b75 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 2 Oct 2024 17:24:25 +0100 Subject: [PATCH] fix: encode search when querying features (#4689) --- frontend/common/stores/feature-list-store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/common/stores/feature-list-store.ts b/frontend/common/stores/feature-list-store.ts index c906afa21fd5..6ba43dd2461d 100644 --- a/frontend/common/stores/feature-list-store.ts +++ b/frontend/common/stores/feature-list-store.ts @@ -964,7 +964,7 @@ const controller = { }, searchFeatures: _.throttle( (search, environmentId, projectId, filter, pageSize) => { - store.search = search + store.search = encodeURIComponent(search) controller.getFeatures( projectId, environmentId, @@ -1021,7 +1021,7 @@ store.dispatcherIndex = Dispatcher.register(store, (payload) => { break } case Actions.GET_FLAGS: - store.search = action.search || '' + store.search = encodeURIComponent(action.search || '') if (action.sort) { store.sort = action.sort }