From 175a50ef789f0aed2d8312c07ae1c8b1307a49f3 Mon Sep 17 00:00:00 2001 From: LucunJi <36262513+LucunJi@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:04:38 -0500 Subject: [PATCH] fix: encode tag name in lofter request's form (#14494) --- lib/v2/lofter/tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/lofter/tag.js b/lib/v2/lofter/tag.js index 91c9ec300..efff0bdb4 100644 --- a/lib/v2/lofter/tag.js +++ b/lib/v2/lofter/tag.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { 'c0-scriptName': 'TagBean', 'c0-methodName': 'search', 'c0-id': '0', - 'c0-param0': `string:${name}`, + 'c0-param0': `string:${encodeURI(name)}`, 'c0-param1': 'number:0', 'c0-param2': 'string:', 'c0-param3': `string:${type}`,