Skip to content

Commit

Permalink
[Security Solution] Fix URI param encoding on user and host details p…
Browse files Browse the repository at this point in the history
…age (#129064)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5b82971)
  • Loading branch information
machadoum committed Apr 4, 2022
1 parent 9a02be4 commit 619dc08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ export const HostsContainer = React.memo(() => (
match: {
params: { detailName },
},
}) => <HostDetails hostDetailsPagePath={hostDetailsPagePath} detailName={detailName} />}
}) => (
<HostDetails
hostDetailsPagePath={hostDetailsPagePath}
detailName={decodeURIComponent(detailName)}
/>
)}
/>
<Route
path={hostDetailsPagePath}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export const UsersContainer = React.memo(() => {
match: {
params: { detailName },
},
}) => <UsersDetails usersDetailsPagePath={usersDetailsPagePath} detailName={detailName} />}
}) => (
<UsersDetails
usersDetailsPagePath={usersDetailsPagePath}
detailName={decodeURIComponent(detailName)}
/>
)}
/>
<Route
path={usersDetailsPagePath}
Expand Down

0 comments on commit 619dc08

Please sign in to comment.