Skip to content

Commit a99751e

Browse files
committed
fix(easytier): Replace util.pcdata with xml.pcdata in easytier.lua
Adds a fix to the `update.sh` script to correct the `easytier.lua` file within the `luci-app-easytier` package. The `easytier.lua` file incorrectly uses `util.pcdata` for XML data handling. This commit replaces `util.pcdata` with `xml.pcdata` to ensure proper XML escaping and prevent potential display issues or errors in the LuCI interface for EasyTier. The change is applied during the build process.
1 parent a33ac19 commit a99751e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

update.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,13 @@ update_argon() {
983983
echo "luci-theme-argon 更新完成"
984984
}
985985

986+
fix_easytier_lua() {
987+
local file_path="$BUILD_DIR/package/feeds/small8/luci-app-easytier/luasrc/model/cbi/easytier.lua"
988+
if [ -f "$file_path" ]; then
989+
sed -i 's/util.pcdata/xml.pcdata/g' "$file_path"
990+
fi
991+
}
992+
986993
main() {
987994
clone_repo
988995
clean_up
@@ -1029,6 +1036,7 @@ main() {
10291036
update_uwsgi_limit_as
10301037
update_argon
10311038
install_feeds
1039+
fix_easytier_lua
10321040
update_adguardhome
10331041
update_script_priority
10341042
update_geoip

0 commit comments

Comments
 (0)