mirror of
https://github.com/minio/minio.git
synced 2025-01-26 14:13:16 -05:00
gateway: reject bad path segments in URL (#4202)
This commit is contained in:
parent
0d32b22359
commit
01f04c717e
@ -193,6 +193,8 @@ func gatewayMain(ctx *cli.Context) {
|
|||||||
registerGatewayAPIRouter(router, newObject)
|
registerGatewayAPIRouter(router, newObject)
|
||||||
|
|
||||||
var handlerFns = []HandlerFunc{
|
var handlerFns = []HandlerFunc{
|
||||||
|
// Validate all the incoming paths.
|
||||||
|
setPathValidityHandler,
|
||||||
// Limits all requests size to a maximum fixed limit
|
// Limits all requests size to a maximum fixed limit
|
||||||
setRequestSizeLimitHandler,
|
setRequestSizeLimitHandler,
|
||||||
// Adds 'crossdomain.xml' policy handler to serve legacy flash clients.
|
// Adds 'crossdomain.xml' policy handler to serve legacy flash clients.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user