Fix regexp matcher of browser assets and paths (#7083)

Fix regexp matcher for special assets for the browser to clash with
less of the object namespace.

Assets should now be loaded with the /minio/ prefix. Previously,
favicon.ico (and others) could be loaded at any path matching
/minio/*/favicon.ico. This clashes with a large part of the object
namespace. With this change, /minio/favicon.ico will serve the favicon
but not /minio/mybucket/favicon.ico

Fixes #7077
This commit is contained in:
Aditya Manthramurthy
2019-01-22 10:58:28 -08:00
committed by kannappanr
parent 8c1b649b2d
commit 042d7f25e4
3 changed files with 44 additions and 41 deletions

File diff suppressed because one or more lines are too long