diff options
Diffstat (limited to 'internal/route/repo/webhook.go')
-rw-r--r-- | internal/route/repo/webhook.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/webhook.go b/internal/route/repo/webhook.go index 8e4b3a11..43148822 100644 --- a/internal/route/repo/webhook.go +++ b/internal/route/repo/webhook.go @@ -135,7 +135,7 @@ func isLocalHostname(hostname string) bool { return false } -func validateWebhook(actor *db.User, l macaron.Locale, w *db.Webhook) (field string, msg string, ok bool) { +func validateWebhook(actor *db.User, l macaron.Locale, w *db.Webhook) (field, msg string, ok bool) { if !actor.IsAdmin { // 🚨 SECURITY: Local addresses must not be allowed by non-admins to prevent SSRF, // see https://github.com/gogs/gogs/issues/5366 for details. |