diff --git a/gateway/event_handler_webhooks.go b/gateway/event_handler_webhooks.go index 5933a9b2a83..0e572efb829 100644 --- a/gateway/event_handler_webhooks.go +++ b/gateway/event_handler_webhooks.go @@ -161,12 +161,14 @@ func (w *WebHookHandler) getRequestMethod(m string) WebHookRequestMethod { } func (w *WebHookHandler) checkURL(r string) bool { - log.WithFields(logrus.Fields{ - "prefix": "webhooks", - }).Debug("Checking URL: ", r) if r == "" { return false } + + log.WithFields(logrus.Fields{ + "prefix": "webhooks", + }).Debug("Checking URL: ", r) + if _, err := url.ParseRequestURI(r); err != nil { log.WithFields(logrus.Fields{ "prefix": "webhooks",