Skip to content

Commit

Permalink
fix: path escape for system name in alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukino16 authored and Yukino16 committed Oct 17, 2024
1 parent ee92e33 commit 66f8af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beszel/internal/alerts/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
Expand Down

0 comments on commit 66f8af5

Please sign in to comment.