From 5a37b6c0e23f71012565de0d8ec4db3d710620df Mon Sep 17 00:00:00 2001 From: Dregaringo <46315689+Dregaringo@users.noreply.github.com> Date: Mon, 28 Oct 2024 08:05:21 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20incorrect=20definition=20of=20=E2=80=9Cqu?= =?UTF-8?q?ote=E2=80=9D=20for=20host=20link=20(#1074)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: resolve double URL encoding issue on macOS * fix: resolve double URL encoding issue on macOS --------- Co-authored-by: Andrii Ivanov Co-authored-by: Henri Wahl <2835065+HenriWahl@users.noreply.github.com> --- Nagstamon/Servers/IcingaDBWeb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nagstamon/Servers/IcingaDBWeb.py b/Nagstamon/Servers/IcingaDBWeb.py index ed4ed023..8340d7c4 100644 --- a/Nagstamon/Servers/IcingaDBWeb.py +++ b/Nagstamon/Servers/IcingaDBWeb.py @@ -744,7 +744,7 @@ def open_monitor(self, host, service=''): url = '{0}/icingadb/hosts?host.state.is_problem=y&sort=host.state.severity#!{1}/icingadb/host?{2}'.format( self.monitor_url, base_path, - urllib.parse.urlencode({'name': self.hosts[host].real_name}, quote_via=quote) + urllib.parse.urlencode({'name': self.hosts[host].real_name}, quote_via=urllib.parse.quote) ) else: # Handle URL for service monitoring