Skip to content

Commit

Permalink
fix: encode tag name in getTag URI in Szurubooru script (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
59716123 committed Mar 4, 2023
1 parent 71bdba6 commit 3ecdcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/commands/szurubooru.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const FormData = require("form-data");

async function getTag(name) {
try {
const res = await axios.get(`/tag/${name}`);
const res = await axios.get(`/tag/${encodeURIComponent(name)}`);
return res.data;
} catch (e) {
if (e.response.status === 404) {
Expand Down

0 comments on commit 3ecdcff

Please sign in to comment.