We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 787717e commit 758fb1bCopy full SHA for 758fb1b
1 file changed
path.go
@@ -50,7 +50,7 @@ func cleanPath(p string) string {
50
r := 1
51
w := 1
52
53
- if p[0] != '/' {
+ if p[0] != '/' || (n > 1 && (p[1] == '/' || p[1] == '\\')) {
54
r = 0
55
56
if n+1 > stackBufSize {
0 commit comments