mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 00:09:37 +08:00
fix: potential file inclusion via variable
This commit is contained in:
@@ -701,7 +701,7 @@ func (ad *ADBDriver) StopCaptureLog() (result interface{}, err error) {
|
||||
return pointRes, nil
|
||||
}
|
||||
|
||||
reader, err := os.Open(files[0])
|
||||
reader, err := os.OpenFile(files[0], os.O_RDONLY, 0o666)
|
||||
if err != nil {
|
||||
log.Info().Msg("open File error")
|
||||
return pointRes, nil
|
||||
|
||||
Reference in New Issue
Block a user