From 7385e17a4c0b2485ac5326663a8d27fe2fb2cd1d Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 17 Jan 2025 16:34:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Base64=20=E5=90=88?= =?UTF-8?q?=E6=B3=95=E6=80=A7=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/preprocessors/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index faeffb3..3b49400 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.16.17", + "version": "2.16.18", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/preprocessors/index.js b/backend/src/core/proxy-utils/preprocessors/index.js index 5ad0899..2305800 100644 --- a/backend/src/core/proxy-utils/preprocessors/index.js +++ b/backend/src/core/proxy-utils/preprocessors/index.js @@ -37,7 +37,7 @@ function Base64Encoded() { }; const parse = function (raw) { const decoded = Base64.decode(raw); - if (!/^\w+:\/\/\w+/m.test(decoded)) { + if (!/^\w+(:\/\/|\s*?=\s*?)\w+/m.test(decoded)) { $.error( `Base64 Pre-processor error: decoded line does not start with protocol`, );