Commit 373b2311 authored by Alessio Caiazza's avatar Alessio Caiazza

Merge branch 'security-remove-validate-path-logging-8-64' into '8-64-stable'

Stop logging when path is excluded

See merge request gitlab-org/security/gitlab-workhorse!30
parents b34345b3 6eb4563f
---
title: Stop logging when path is excluded
merge_request:
author:
type: security
......@@ -37,7 +37,6 @@ func (s *Static) ServeExisting(prefix urlprefix.Prefix, cache CacheMode, notFoun
// %20 in their name.
relativePath, err := s.validatePath(prefix.Strip(r.URL.Path))
if err != nil {
log.WithRequest(r).WithError(err).Error()
notFoundHandler.ServeHTTP(w, r)
return
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment