Skip to content

Commit

Permalink
Improve Weblate URL validation
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleSamSwiss committed Jan 17, 2025
1 parent 4b491f9 commit d222ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express/backend/src/api/weblate-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ router.get<any>("/api/weblate/*", async function (req, res) {
const url = new URL(`${WEBLATE_API}${userPath}`);
const q = req.query;
if (q.page) {
url.searchParams.set("page", q.page as string);
url.searchParams.set("page", Number(q.page).toString());
}

const result = await axios.get<any>(url.toString(), {
Expand Down

0 comments on commit d222ad0

Please sign in to comment.