From 25aac5f190d238489a6b2f6fdf6ad528672b2ae0 Mon Sep 17 00:00:00 2001 From: Mickey Slaven Date: Thu, 27 Aug 2026 03:06:51 -0400 Subject: [PATCH] Fix ADS-B server URL decoding --- event/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event/event.py b/event/event.py index fe66b4a..b38ee45 100644 --- a/event/event.py +++ b/event/event.py @@ -14,6 +14,7 @@ import hashlib import os import yaml +from urllib.parse import unquote from algorithm.associator.AdsbAssociator import AdsbAssociator from algorithm.localisation.EllipseParametric import EllipseParametric @@ -274,7 +275,7 @@ async def callback_message_received(msg): api[-1]["hash"] = short_hash(msg) url_parts = msg.split("&") for part in url_parts: - key, value = part.split("=") + key, value = (unquote(item) for item in part.split("=", 1)) if key in api[-1]: if not isinstance(api[-1][key], list): api[-1][key] = [api[-1][key]]