From 34a8053967e03bbfdc3bd3e052d70020134d7289 Mon Sep 17 00:00:00 2001 From: Yukino16 <30972308+Yukino16@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:31:36 +0800 Subject: [PATCH] fix: path escape for system name in alert message (#209) --- beszel/internal/alerts/alerts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beszel/internal/alerts/alerts.go b/beszel/internal/alerts/alerts.go index 22ea340..cceb3b7 100644 --- a/beszel/internal/alerts/alerts.go +++ b/beszel/internal/alerts/alerts.go @@ -390,7 +390,7 @@ func (am *AlertManager) HandleStatusAlerts(newStatus string, oldSystemRecord *mo UserID: user.GetId(), Title: fmt.Sprintf("Connection to %s is %s %v", systemName, alertStatus, emoji), Message: fmt.Sprintf("Connection to %s is %s", systemName, alertStatus), - Link: am.app.Settings().Meta.AppUrl + "/system/" + url.QueryEscape(systemName), + Link: am.app.Settings().Meta.AppUrl + "/system/" + url.PathEscape(systemName), LinkText: "View " + systemName, }) }