From 883e0919301e208dfecf0cc9ce0dd973bb78a803 Mon Sep 17 00:00:00 2001 From: Aritro37 <85866469+Aritro37@users.noreply.github.com> Date: Thu, 20 Mar 2025 21:57:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=81=9A=E5=90=88?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C=E5=90=8D=E7=A7=B0=E5=B8=A6?= =?UTF-8?q?=E6=9C=89=E4=B8=AD=E6=96=87=E6=88=96=E7=89=B9=E6=AE=8A=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E7=9A=84=E5=88=86=E4=BA=ABtoken=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/restful/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 93937e7..4a2a3c4 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.0", + "version": "2.19.1", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/restful/index.js b/backend/src/restful/index.js index 40b39fe..a03ca35 100644 --- a/backend/src/restful/index.js +++ b/backend/src/restful/index.js @@ -54,7 +54,7 @@ export default function serve() { next(); return; } - const pathname = req._parsedUrl.pathname || '/'; + const pathname = decodeURIComponent(req._parsedUrl.pathname) || '/'; if(be_merge && req.path.startsWith('/share/') && req.query.token){ if (req.method.toLowerCase() !== 'get'){ res.status(405).send('Method not allowed');