Skip to content

Commit

Permalink
Fix incorrect definition of “quote” for host link (#1074)
Browse files Browse the repository at this point in the history
* fix: resolve double URL encoding issue on macOS

* fix: resolve double URL encoding issue on macOS

---------

Co-authored-by: Andrii Ivanov <[email protected]>
Co-authored-by: Henri Wahl <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 78653d5 commit 5a37b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nagstamon/Servers/IcingaDBWeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a37b6c

Please sign in to comment.