mirror of
https://github.com/simon987/ws_bucket.git
synced 2025-12-13 22:59:05 +00:00
jenkins setup
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
@@ -49,6 +50,8 @@ func (req *AllocateUploadSlotRequest) IsValid() bool {
|
||||
return false
|
||||
}
|
||||
if !strings.HasPrefix(pathAbs, WorkDir) {
|
||||
fmt.Println(pathAbs)
|
||||
fmt.Println(WorkDir)
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user