mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-01 21:10:13 +00:00
Improve table column widths and sparkline visibility
This commit is contained in:
parent
6f4cbf3a52
commit
a82a345cd6
7 changed files with 164 additions and 108 deletions
|
|
@ -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 != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue