We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b2f20 commit 4bb0447Copy full SHA for 4bb0447
options.go
@@ -2,7 +2,7 @@ package storage
2
3
import (
4
"errors"
5
- "path/filepath"
+ "strings"
6
7
"go.opentelemetry.io/otel/trace"
8
)
@@ -32,7 +32,7 @@ func (o *Options) validateAndFix() error {
32
}
33
case LocalBackends:
34
// to prevent uncontrolled file writes on local machines
35
- if len(filepath.SplitList(o.pathPrefix)) < 2 {
+ if len(strings.Split(o.pathPrefix, "/")) < 2 {
36
return ErrLocalStorageUnsafePrefix
37
38
default:
0 commit comments