From: Paul Donald Date: Thu, 29 Jan 2026 18:12:10 +0000 (+0100) Subject: luci-mod-system: make repokeys more future proof X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a8328056e4dc8ee30aab1047b29d0c86e273fcfa;p=openwrt-luci.git luci-mod-system: make repokeys more future proof Detect future release key names based on pattern. Signed-off-by: Paul Donald --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/repokeys.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/repokeys.js index d8870aaef4..3a6c22ab22 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/repokeys.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/repokeys.js @@ -22,6 +22,10 @@ function isFileInSafeList(file){ for (let name of safeList) { if (file === name) return true; + if (file.toLocaleLowerCase().replace(/^openwrt-[0-9]+\.[0-9]+/i, '') !== file) + return true; + if (file.toLocaleLowerCase().replace(/^openwrt-snapshots/i, '') !== file) + return true; } return false; }