lib: Prevent using protocol method with native path (fixes #7557) (#7563)

This commit is contained in:
Simon Frei
2021-04-11 15:29:43 +02:00
committed by GitHub
parent ec0a66c75b
commit 1a00ea7c6e
8 changed files with 20 additions and 29 deletions
+1 -2
View File
@@ -11,7 +11,6 @@ import (
"errors"
"fmt"
"path/filepath"
"strings"
"sync"
"time"
@@ -400,7 +399,7 @@ func (r *defaultRealCaser) realCase(name string) (string, error) {
return realName, nil
}
for _, comp := range strings.Split(name, string(PathSeparator)) {
for _, comp := range PathComponents(name) {
node := r.cache.getExpireAdd(realName)
node.once.Do(func() {