mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
Fix security issue
This commit is contained in:
parent
7b10bf4ec3
commit
daa0082e63
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ func CheckAuth(authKeys []string, key string) (result bool, err error) {
|
|||
|
||||
func (a ApiKeysMiddleware) getSitePrefix() string {
|
||||
prefix := a.o.SitePath
|
||||
if len(prefix) <= 0 || prefix[0] != '/' {
|
||||
if len(prefix) > 1 && redir[0] == '/' && redir[1] != '/' && redir[1] != '\\' {
|
||||
prefix = "/" + prefix
|
||||
}
|
||||
return prefix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue