fix: encodeURIComponent secret

This commit is contained in:
GyDi
2023-06-29 14:15:57 +08:00
committed by GitHub
parent c2109d245f
commit 6cf174c5ed
3 changed files with 6 additions and 3 deletions

View File

@@ -60,7 +60,10 @@ export const WebUIViewer = forwardRef<DialogRef>((props, ref) => {
.trim();
url = url.replaceAll("%port", port || "9090");
url = url.replaceAll("%secret", clashInfo.secret || "");
url = url.replaceAll(
"%secret",
encodeURIComponent(clashInfo.secret || "")
);
}
await openWebUrl(url);