Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/corazawaf/waf.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func (w *WAF) Validate() error {
return errors.New("request body json depth limit should be bigger than 0")
}

if environment.HasAccessToFS() {
if environment.HasAccessToFS {
if w.UploadKeepFiles != types.UploadKeepFilesOff && w.UploadDir == "" {
return errors.New("SecUploadDir is required when SecUploadKeepFiles is enabled")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/seclang/directives.go
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ func directiveSecUploadKeepFiles(options *DirectiveOptions) error {
return err
}

if !environment.HasAccessToFS && status != types.UploadKeepFilesStatusOff {
if !environment.HasAccessToFS && status != types.UploadKeepFilesOff {
return fmt.Errorf("SecUploadKeepFiles: cannot enable keeping uploaded files: filesystem access is disabled")
}

Expand Down
Loading