From d10cd212b4a3b3709bb266e9a61ecb962070bf45 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 6 Oct 2024 03:19:32 +0900 Subject: [PATCH 1/2] fix: sanitize UGC IDs (#155) --- CHANGELOG.md | 4 ++++ dzgui.sh | 6 +++--- helpers/funcs | 7 ++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c62e093..fe6a399 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [5.4.2-beta.1] 2024-10-05 +### Fixed +- Sanitize third-party API IDs to remove UGC collisions + ## [5.4.1-beta.2] 2024-09-12 ### Fixed - Use fallback logic for modlist queries when user traverses networks diff --git a/dzgui.sh b/dzgui.sh index 420b769..fe7b953 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.4.1-beta.3 +version=5.4.2-beta.1 #CONSTANTS aid=221100 @@ -549,7 +549,7 @@ fetch_icons(){ "128" "256" ) - url="$testing_url/images/icons" + url="$stable_url/images/icons" for i in "${res[@]}"; do size="${i}x${i}" dir="$HOME/.local/share/icons/hicolor/$size/apps" @@ -569,7 +569,7 @@ fetch_helpers_by_sum(){ ["ui.py"]="9cac4d3b87ef292e7d30b25ca86cc438" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="4a06a823b6240c518687d2a8ec20e914" + ["funcs"]="7221bda853145942c4c728cbc76ac633" ["lan"]="c62e84ddd1457b71a85ad21da662b9af" ) local author="aclist" diff --git a/helpers/funcs b/helpers/funcs index 16030fd..071c8d3 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1019,7 +1019,11 @@ query_defunct(){ -H "Content-Type:application/x-www-form-urlencoded"\ -d "$(payload)" 'https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/?format=json' } - local result=$(post | jq -r '.[].publishedfiledetails[] | select(.result==1) | "\(.file_size) \(.publishedfileid)"') + local result=$(post | jq -r ' + .[].publishedfiledetails[] + | select(.result==1) + | select(.filename|contains("screenshot")|not) + | "\(.file_size) \(.publishedfileid)"') <<< "$result" awk '{print $2}' } encode(){ @@ -1177,6 +1181,7 @@ focus_beta_client(){ $steam_cmd steam://open/console 2>/dev/null 1>&2 } auto_mod_install(){ + # currently unused, merged with manual method local ip="$1" local gameport="$2" local diff="$3" From 278aa8c28ab3b832ff53ac783c3a35dba55ecfe3 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 6 Oct 2024 03:26:24 +0900 Subject: [PATCH 2/2] chore: update checksum --- CHANGELOG.md | 42 +++++++++++------------------------------- dzgui.sh | 4 ++-- helpers/funcs | 2 +- 3 files changed, 14 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe6a399..edf2aeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,50 +1,30 @@ # Changelog -## [5.4.2-beta.1] 2024-10-05 -### Fixed +## [5.4.2] 2024-10-05 - Sanitize third-party API IDs to remove UGC collisions -## [5.4.1-beta.2] 2024-09-12 -### Fixed -- Use fallback logic for modlist queries when user traverses networks - -## [5.4.1-beta.2] 2024-09-10 -### Fixed -- Fix signal handling control flow for checkbox toggles - -## [5.4.1-beta.1] 2024-09-10 +## [5.4.1] 2024-09-25 ### Added - Pre-boot validation check for users with self-compiled version of jq ### Fixed +- Use fallback logic for modlist queries when user traverses networks +- Fix signal handling control flow for checkbox toggles - When reloading the server browser, the map combobox selection would revert to the last selected map instead of All Maps - Server filter toggle signals were accessible from the main menu when switching between menu contexts - Global cooldown dialog could sometimes block filter toggles after cooldown reset - Normalized minor version number due to a previous clerical error -## [5.4.0-beta.5] 2024-08-27 -### Added -- Freedesktop application icons for system taskbar, tray, and other dialogs -### Fixed -- Errors being printed to the console when Exit button was explicitly clicked - -## [5.4.0-beta.4] 2024-08-21 -### Added -- Emit CPU model name when exporting system debug log -### Fixed -- Detect Steam Deck OLED APU variant during initial setup - -## [5.4.0-beta.3] 2024-08-04 +## [5.4.0] 2024-08-27 ### Added - Scan local area network for DayZ servers - -## [5.4.0-beta.2] 2024-08-03 -### Fixed -- Clerical hotfix for previous player names fix -- Test if DayZ directory is empty at startup, implying that the game was moved to a new library collection - -## [5.4.0-beta.1] 2024-07-16 +- Freedesktop application icons for system taskbar, tray, and other dialogs +- Emit CPU model name when exporting system debug log ### Fixed +- Errors being printed to the console when Exit button was explicitly clicked +- Detect Steam Deck OLED APU variant during initial setup - Encapsulate player names correctly so that names with whitespace in them are supported +- Test if DayZ directory is empty at startup, implying that the game was moved to a new library collection +- Report WM_CLASS name to the window manager ## [5.3.2] 2024-07-02 ### Fixed diff --git a/dzgui.sh b/dzgui.sh index fe7b953..7b9437e 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.4.2-beta.1 +version=5.4.2 #CONSTANTS aid=221100 @@ -569,7 +569,7 @@ fetch_helpers_by_sum(){ ["ui.py"]="9cac4d3b87ef292e7d30b25ca86cc438" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="7221bda853145942c4c728cbc76ac633" + ["funcs"]="71d3a941209792a41f381f011e78def8" ["lan"]="c62e84ddd1457b71a85ad21da662b9af" ) local author="aclist" diff --git a/helpers/funcs b/helpers/funcs index 071c8d3..8bf10c5 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -o pipefail -version=5.4.1 +version=5.4.2 #CONSTANTS aid=221100