Skip to content

Commit

Permalink
[Security Solution] Fix URI param encoding on user and host details page
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum committed Mar 31, 2022
1 parent b00ca41 commit 191e67d
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 191e67d

Please sign in to comment.