Skip to content

Commit

Permalink
notifier: Verify that the given webhook endpoint is an absolute URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-M committed Apr 12, 2016
1 parent 2fb815d commit 927af43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier/notifiers/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 927af43

Please sign in to comment.