From c13a837193bc1ca45536c543f25c9da5ca03d9fb Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Fri, 6 Nov 2026 14:18:50 -0800 Subject: [PATCH] ensure new version link has proper url (#1503) --- kindlecomicconverter/KCC_gui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index 02d40b6a..0d387661 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -183,6 +183,9 @@ class VersionThread(QThread): json_parser = requests.get("https://api.github.com/repos/ciromattia/kcc/releases/latest").json() html_url = json_parser["html_url"] + if not html_url.startswith('https://github.com/ciromattia/kcc/releases/tag/'): + print('Somehow you got MITM') + raise Exception('Somehow you got MITM') latest_version = json_parser["tag_name"] latest_version = re.sub(r'^v', "", latest_version)