From 5c68bcd2fb5cb7421a660cd4c42e6aebc62b8cf7 Mon Sep 17 00:00:00 2001 From: gitea-action Date: Sun, 1 Dec 2024 13:30:21 +0800 Subject: [PATCH] luci-app-mihomo: sync upstream last commit: https://github.com/morytyann/OpenWrt-mihomo/commit/39d4052f22187ef4e644922c14638ab200b9a939 --- luci-app-mihomo/Makefile | 2 +- luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-mihomo/Makefile b/luci-app-mihomo/Makefile index 7ad2374ac..9198e0dad 100644 --- a/luci-app-mihomo/Makefile +++ b/luci-app-mihomo/Makefile @@ -1,6 +1,6 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=1.13.1 +PKG_VERSION:=1.13.2 LUCI_TITLE:=LuCI Support for mihomo LUCI_DEPENDS:=+luci-base +mihomo diff --git a/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js b/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js index b57d44e29..8ca2309dd 100644 --- a/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js +++ b/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js @@ -105,7 +105,7 @@ return baseclass.extend({ if (running) { const uiName = uci.get('mihomo', 'mixin', 'ui_name'); const apiPort = uci.get('mihomo', 'mixin', 'api_port'); - const apiSecret = uci.get('mihomo', 'mixin', 'api_secret'); + const apiSecret = encodeURIComponent(uci.get('mihomo', 'mixin', 'api_secret')); let url; if (uiName) { url = `http://${window.location.hostname}:${apiPort}/ui/${uiName}/?host=${window.location.hostname}&hostname=${window.location.hostname}&port=${apiPort}&secret=${apiSecret}`;