We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62cbcf commit 78ccb06Copy full SHA for 78ccb06
1 file changed
internal/pkg/create/create.go
@@ -370,7 +370,7 @@ func normalizeSubdir(subdir string) (string, error) {
370
if cleaned == "." || cleaned == "/" {
371
return "", nil
372
}
373
- if strings.HasPrefix(cleaned, "..") || filepath.IsAbs(cleaned) {
+ if !filepath.IsLocal(cleaned) {
374
return "", slackerror.New(slackerror.ErrSubdirNotFound).
375
WithMessage("subdirectory path %q must be relative and within the template", subdir)
376
0 commit comments