Skip to content

drop '..' from parts other than subpath #228

@armijnhemel

Description

@armijnhemel

Currently .. is allowed:

>>> import packageurl
>>> packageurl.PackageURL.from_string('pkg:sid/busybox.org/../busybox@1.35.0')
PackageURL(type='sid', namespace='busybox.org/..', name='busybox', version='1.35.0', qualifiers={}, subpath=None)

Is this intended behaviour? I would suggest dropping ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions