We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322020f commit 6f82665Copy full SHA for 6f82665
packageurl.go
@@ -457,8 +457,8 @@ func (p *PackageURL) Normalize() error {
457
}
458
subpath := strings.Trim(p.Subpath, "/")
459
segs := strings.Split(p.Subpath, "/")
460
- for _, s := range segs {
461
- if s == "." || s == ".." {
+ for i, s := range segs {
+ if (s == "." || s == "..") && i != 0 {
462
return fmt.Errorf("invalid Package URL subpath: %q", p.Subpath)
463
464
0 commit comments