Skip to content

Commit

Permalink
Prevent double / in path
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Apr 29, 2024
1 parent 3665070 commit 5f20d91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions front/packages/models/src/query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const queryFn = async <Parser extends z.ZodTypeAny>(
)
.filter((x) => x)
.join("/")
.replace("//", "/")
.replace("/?", "?");
let resp;
try {
Expand Down

0 comments on commit 5f20d91

Please sign in to comment.