0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-24 20:17:03 +01:00
gitea/modules/public
silverwind 5180deb819
Send 404 immediately for known public requests (#11117)
Instead of further handling requests to public which causes issues like #11088, immediately terminate requests to directories js, css, fomantic if no file is found which is checked against a hardcoded list. Maybe there is a way to retrieve the top-level entries below public in a dynamic fashion.

I also added fomantic to the reserved usernames and sorted the list.

Fixes: #11088
2020-04-18 22:01:06 +01:00
..
dynamic.go
public_bindata.go
public.go Send 404 immediately for known public requests (#11117) 2020-04-18 22:01:06 +01:00
static.go