From 927af43be074584546c3ece5d0cf4c91d8389669 Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Tue, 12 Apr 2016 13:52:15 -0400 Subject: [PATCH] notifier: Verify that the given webhook endpoint is an absolute URL --- notifier/notifiers/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifier/notifiers/webhook.go b/notifier/notifiers/webhook.go index e284c94723..28b766049d 100644 --- a/notifier/notifiers/webhook.go +++ b/notifier/notifiers/webhook.go @@ -78,7 +78,7 @@ func (h *WebhookNotifier) Configure(config *config.NotifierConfig) (bool, error) if httpConfig.Endpoint == "" { return false, nil } - if _, err := url.Parse(httpConfig.Endpoint); err != nil { + if _, err := url.ParseRequestURI(httpConfig.Endpoint); err != nil { return false, fmt.Errorf("could not parse endpoint URL: %s\n", err) } h.endpoint = httpConfig.Endpoint