From: Roland Häder Date: Tue, 15 Aug 2023 19:21:09 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e99c42728707aa162be96a58665b8d71cf22438;p=fba.git Continued: - fixed instance (host) names with two dots causing a UnicodeError --- diff --git a/fba/http/federation.py b/fba/http/federation.py index af00643..c5b4cf7 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -128,6 +128,9 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path: if instance == "": logger.warning("Empty instance after tidyup.domain(), domain='%s'", domain) continue + elif ".." in instance: + logger.warning("instance='%s' contains double-dot, removing ...", instance) + instance = instance.replace("..", ".") logger.debug("instance='%s' - BEFORE!", instance) instance = instance.encode("idna").decode("utf-8")