Skip to content

Commit

Permalink
Sanitize folder before adding it as url query param
Browse files Browse the repository at this point in the history
  • Loading branch information
lampajr committed May 16, 2024
1 parent 9d21977 commit a7d841a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horreum-web/src/domain/tests/AllTests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export default function AllTests() {
useEffect(() => {
let query = ""
if (folder) {
query += "&folder=" + folder
query += "&folder=" + encodeURIComponent(folder)
}
if (rolesFilter.key !== ONLY_MY_OWN.key) {
query += "&filter=" + rolesFilter.key
Expand Down

0 comments on commit a7d841a

Please sign in to comment.