mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 04:41:17 +00:00
Fix: Compiler refuses to convert 0x0 to string
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9a5aa86b1b
commit
89a1a2e565
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -175,7 +175,7 @@ func handleAuthRequest(res http.ResponseWriter, r *http.Request) {
|
|||
case plugins.ErrNoValidUserFound:
|
||||
// No valid user found, check whether special anonymous "user" has access
|
||||
// Username is set to 0x0 character to prevent accidental whitelist-match
|
||||
if mainCfg.ACL.HasAccess(string(0x0), nil, r) {
|
||||
if mainCfg.ACL.HasAccess(string(byte(0x0)), nil, r) {
|
||||
mainCfg.AuditLog.Log(auditEventValidate, r, map[string]string{"result": "anonymous access granted"}) // #nosec G104 - This is only logging
|
||||
res.WriteHeader(http.StatusOK)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue