From 33cf0fe2aec715a548588684a6847287fe5c0222 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 30 Apr 2026 09:28:12 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 4255b36b..953d5bb8 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2376,11 +2376,12 @@ check_for_gh_release() { # For pinned versions, query the specific release tag directly if [[ -n "$pinned_version_in" ]]; then + local pinned_version_encoded="${pinned_version_in//\//%2F}" http_code=$(curl -sSL --max-time 20 -w "%{http_code}" -o /tmp/gh_check.json \ -H 'Accept: application/vnd.github+json' \ -H 'X-GitHub-Api-Version: 2022-11-28' \ "${header_args[@]}" \ - "https://api.github.com/repos/${source}/releases/tags/${pinned_version_in}" 2>/dev/null) || true + "https://api.github.com/repos/${source}/releases/tags/${pinned_version_encoded}" 2>/dev/null) || true if [[ "$http_code" == "200" ]] && [[ -s /tmp/gh_check.json ]]; then releases_json="[$(