Skip to content

Commit 758fb1b

Browse files
committed
fix: bad redirect
1 parent 787717e commit 758fb1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

path.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func cleanPath(p string) string {
5050
r := 1
5151
w := 1
5252

53-
if p[0] != '/' {
53+
if p[0] != '/' || (n > 1 && (p[1] == '/' || p[1] == '\\')) {
5454
r = 0
5555

5656
if n+1 > stackBufSize {

0 commit comments

Comments
 (0)