You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-07-17 19:17:50 +02:00
[#2548] use fileath.Clean on the fs.WalkDirFunc argument to ensure that the same normalizations are applied
This commit is contained in:
@ -51,7 +51,7 @@ func zipAddFS(w *zip.Writer, fsys fs.FS, skipPaths ...string) error {
|
|||||||
// skip
|
// skip
|
||||||
for _, ignore := range skipPaths {
|
for _, ignore := range skipPaths {
|
||||||
if ignore == name ||
|
if ignore == name ||
|
||||||
strings.HasPrefix(name+string(os.PathSeparator), filepath.Clean(ignore)+string(os.PathSeparator)) {
|
strings.HasPrefix(filepath.Clean(name)+string(os.PathSeparator), filepath.Clean(ignore)+string(os.PathSeparator)) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user