diff --git a/api/static/index.js b/api/static/index.js index 575e48e..fc64113 100644 --- a/api/static/index.js +++ b/api/static/index.js @@ -69,7 +69,7 @@ function generateURI() { // 获取订阅user-agent标识 const userAgent = document.getElementById("user-agent").value; - queryParams.push(`userAgent=${userAgent}`) + queryParams.push(`userAgent=${encodeURIComponent(userAgent)}`); // 获取复选框的值 const refresh = document.getElementById("refresh").checked;