Improve table column widths and sparkline visibility

This commit is contained in:
rcourtman 2025-11-09 23:36:52 +00:00
parent 6f4cbf3a52
commit a82a345cd6
7 changed files with 164 additions and 108 deletions

View file

@ -487,6 +487,16 @@ func (n *NotificationManager) TestEnhancedWebhook(webhook EnhancedWebhookConfig)
}
webhook.URL = renderedURL
// Validate webhook URL to prevent SSRF/DNS rebinding attacks (same validation as live sends)
if err := n.ValidateWebhookURL(webhook.URL); err != nil {
log.Error().
Err(err).
Str("webhook", webhook.Name).
Str("url", webhook.URL).
Msg("Webhook URL validation failed for test request")
return 0, "", fmt.Errorf("webhook URL validation failed: %w", err)
}
// For Telegram, extract chat_id from URL if present
if webhook.Service == "telegram" {
if chatID, err := extractTelegramChatID(webhook.URL); err == nil && chatID != "" {