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 adbc77e commit 348b672Copy full SHA for 348b672
path.go
@@ -59,11 +59,11 @@ func CleanPath(p string) string {
59
60
case p[r] == '.' && p[r+1] == '/':
61
// . element
62
- r++
+ r += 2
63
64
case p[r] == '.' && p[r+1] == '.' && (r+2 == n || p[r+2] == '/'):
65
// .. element: remove to last /
66
- r += 2
+ r += 3
67
68
if w > 1 {
69
// can backtrack
0 commit comments