Validate portable workspace identifiers
This commit is contained in:
@@ -391,7 +391,11 @@ func previousSessionCacheCandidatePaths(paths SessionPaths, canonicalRelPath str
|
||||
out := make([]string, 0, len(relCandidates))
|
||||
seen := map[string]struct{}{}
|
||||
for _, rel := range relCandidates {
|
||||
abs := filepath.Clean(SessionPreviousArtifactPath(paths, rel))
|
||||
abs, err := SessionPreviousArtifactPath(paths, rel)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
abs = filepath.Clean(abs)
|
||||
if _, ok := seen[abs]; ok {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user