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');